Пример #1
0
 def test_invalid_binary_name_type(self):
     with self.assertRaises(TypeError):
         FilePublisherCondition(binary_name=False)
Пример #2
0
 def test_valid_binary_name(self):
     condition = FilePublisherCondition(binary_name='binary_name')
     self.assertEqual(condition.binary_name, 'binary_name')
Пример #3
0
 def test_valid_product_name(self):
     condition = FilePublisherCondition(product_name='product_name')
     self.assertEqual(condition.product_name, 'product_name')
Пример #4
0
 def test_default_binary_name(self):
     condition = FilePublisherCondition()
     self.assertEqual(condition.binary_name, '*')
Пример #5
0
 def test_default_product_name(self):
     condition = FilePublisherCondition()
     self.assertEqual(condition.product_name, '*')