zypper_test: correct mock behavior

Previously incorrect, although the test passed
This commit is contained in:
Silvio Moioli 2017-07-14 15:03:01 +00:00
parent c2210d64ab
commit a32ee4af05

View File

@ -486,7 +486,7 @@ Repository 'DUMMY' not found by its alias, number, or URI.
:return:
'''
def _add_data(data, key, value):
data[key] = value
data.setdefault(key, []).append(value)
rpm_out = [
'protobuf-java_|-2.6.1_|-3.1.develHead_|-',
@ -509,7 +509,7 @@ Repository 'DUMMY' not found by its alias, number, or URI.
'apache-commons-cli': '1.2-1.233',
'jose4j': '0.4.4-2.1.develHead'}.items():
self.assertTrue(pkgs.get(pkg_name))
self.assertEqual(pkgs[pkg_name], pkg_version)
self.assertEqual(pkgs[pkg_name], [pkg_version])
def test_list_patches(self):
'''