Index: test_classification.py =================================================================== --- test_classification.py (Revision 2689) +++ test_classification.py (Arbeitskopie) @@ -75,17 +75,25 @@ self.assertEqual(group.GetLabel(), "") # test constructor with label - group = ClassGroup("hallo") + group = ClassGroup(label="hallo") self.assertEqual(group.GetLabel(), "hallo") # test SetLabel()/GetLabel() - group = ClassGroup("welt") + group = ClassGroup(label="welt") group.SetLabel("hallo") self.assertEqual(group.GetLabel(), "hallo") group.SetLabel("") self.assertEqual(group.GetLabel(), "") + # test that _repr_ can create an identical object + group = ClassGroup(label="something") + newgroup = eval(group.__repr__()) + #print group.__repr__(), ";", newgroup.__repr__() + #newgroup=ClassGroup(ClassGroupProperties(Color(0, 0, 0), 1, 5, Transparent), 'something') + self.assertEqual(isinstance(newgroup,ClassGroup), True) + self.assertEqual(group, newgroup) + # test Matches # Matches() is a virtual function...can't test it here #