pylint fixes

This commit is contained in:
rallytime 2014-03-05 13:56:30 -07:00
parent 543a6943fc
commit f5f089b7a6

View File

@ -84,13 +84,14 @@ class BrewTestCase(TestCase):
'''
self.assertEqual(brew.list_pkgs(removed=True), {})
def test_list_pkgs_versions_list_true(self):
def test_list_pkgs_versions_true(self):
'''
Tests if pkg.list_pkgs is already in context and is a list
'''
mock_context = {'foo': ['bar']}
with patch.dict(brew.__context__, {'pkg.list_pkgs': mock_context}):
self.assertEqual(brew.list_pkgs(versions_as_list=True), mock_context)
self.assertEqual(brew.list_pkgs(versions_as_list=True),
mock_context)
# 'version' function tests: 1