示例#1
0
 def test_merge_label(self):
     Configuration.add('new-group', label="Label 1",
                       function_=fnct_other_configuration)
     Configuration.add('old-group', label="Label 2", part='other',
                       function_=fnct_configuration)
     labels = Configuration._merge_labels('bloks')
     self.assertEqual(labels, {'new-group': "Label 1"})
示例#2
0
 def test_merge_labels_inexisting_part(self):
     Configuration._merge_labels('other')
示例#3
0
 def test_merge_labels_with_no_parts(self):
     with self.assertRaises(ConfigurationException):
         Configuration._merge_labels()