Esempio n. 1
0
 def test_cart_with_provided_description(self):
     """A cart with items is not empty"""
     cart = Cart('test-cart', [['test-repo', 'share/juicer/empty-0.1-1.noarch.rpm']])
     self.assertEqual(cart.repos(), ['test-repo'])
     self.assertEqual(cart.keys(), ['test-repo'])
     self.assertEqual(cart.is_empty(), False)
     self.assertIsInstance(str(cart), str)
Esempio n. 2
0
 def test_cart_with_provided_description(self):
     """A cart with items is not empty"""
     cart = Cart('test-cart',
                 [['test-repo', 'share/juicer/empty-0.1-1.noarch.rpm']])
     self.assertEqual(cart.repos(), ['test-repo'])
     self.assertEqual(cart.keys(), ['test-repo'])
     self.assertEqual(cart.is_empty(), False)
     self.assertIsInstance(str(cart), str)
Esempio n. 3
0
 def test_cart_with_provided_description(self):
     """A cart with items is not empty"""
     with mock.patch('juicer.common.Constants') as constants:
         constants.USER_CONFIG = './config'
         cart = Cart('test-cart', [['test-repo', 'share/juicer/empty-0.1-1.noarch.rpm']])
         self.assertEqual(cart.repos(), ['test-repo'])
         self.assertEqual(cart.keys(), ['test-repo'])
         self.assertEqual(cart.is_empty(), False)
         self.assertIsInstance(str(cart), str)