mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use strings instead of unicode strings
This commit is contained in:
parent
3342c03987
commit
0cc6bce4aa
1 changed files with 3 additions and 5 deletions
|
@ -97,15 +97,14 @@ class ZypperTestCase(TestCase):
|
|||
with patch.dict(zypper.__salt__, {'cmd.run': MagicMock(return_value=ref_out)}):
|
||||
products = zypper.list_products()
|
||||
assert(len(products) == 5)
|
||||
assert([u'SLES', u'SLES', u'SUSE-Manager-Proxy',
|
||||
u'SUSE-Manager-Server',
|
||||
u'sle-manager-tools-beta'] == sorted([prod['name'] for prod in products]))
|
||||
assert(['SLES', 'SLES', 'SUSE-Manager-Proxy', 'SUSE-Manager-Server', 'sle-manager-tools-beta'] ==
|
||||
sorted([prod['name'] for prod in products]))
|
||||
assert('SUSE LLC <https://www.suse.com/>' in [product['vendor'] for product in products])
|
||||
assert([False, False, False, False, True] ==
|
||||
sorted([product['isbase'] for product in products]))
|
||||
assert([False, False, False, False, True] ==
|
||||
sorted([product['installed'] for product in products]))
|
||||
assert([u'0', u'0', u'0', u'0', u'0'] ==
|
||||
assert(['0', '0', '0', '0', '0'] ==
|
||||
sorted([product['release'] for product in products]))
|
||||
assert([False, False, False, False, u'sles'] ==
|
||||
sorted([product['productline'] for product in products]))
|
||||
|
@ -113,7 +112,6 @@ class ZypperTestCase(TestCase):
|
|||
sorted([product['eol_t'] for product in products]))
|
||||
|
||||
|
||||
|
||||
def test_refresh_db(self):
|
||||
'''
|
||||
Test if refresh DB handled correctly
|
||||
|
|
Loading…
Add table
Reference in a new issue