Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 def test_list_pkgs_removed(self):
     '''
     Tests removed implementation
     '''
     self.assertEqual(brew.list_pkgs(removed=True), {})
Пример #4
0
 def test_list_pkgs_removed(self):
     '''
     Tests removed implementation
     '''
     self.assertEqual(brew.list_pkgs(removed=True), {})