Unify error messages for CLI Unify error messages for hub Fixes: https://pagure.io/koji/issue/2720
14 lines
391 B
Python
14 lines
391 B
Python
import unittest
|
|
|
|
import koji
|
|
import kojihub
|
|
|
|
|
|
class TestListRpms(unittest.TestCase):
|
|
|
|
def test_wrong_type_arches(self):
|
|
arches = {'test-arch': 'val'}
|
|
with self.assertRaises(koji.GenericError) as cm:
|
|
kojihub.list_rpms(arches=arches)
|
|
self.assertEqual('Invalid type for "arches" parameter: %s' % type(arches),
|
|
str(cm.exception))
|