Test for pkg.upgrade. Most robust on Suse but better than nothing elsewhere

This commit is contained in:
C. R. Oldham 2016-09-27 14:32:20 -06:00
parent 867638ff48
commit 3870589462

View file

@ -274,7 +274,8 @@ class PkgModuleTest(integration.ModuleCase,
ret = self.run_function(func)
# The changes dictionary should not be empty.
self.assertIn('vim', ret)
self.assertIn('changes', ret)
self.assertIn('vim', ret['changes'])
else:
ret = self.run_function('pkg.list_updates')
if ret == '':