Example #1
0
 def test_name_of_action(self):
     self.assertEqual("accepted", TriangleClassification.name_of(TriangleClassification.Accept))
     self.assertEqual("rejected", TriangleClassification.name_of(TriangleClassification.Reject))
     self.assertEqual("refined", TriangleClassification.name_of(TriangleClassification.Refine))
Example #2
0
 def test_action_by_name(self):
     self.assertEqual(TriangleClassification.Accept, TriangleClassification.by_name("accepted"))
     self.assertEqual(TriangleClassification.Reject, TriangleClassification.by_name("rejected"))
     self.assertEqual(TriangleClassification.Refine, TriangleClassification.by_name("refined"))