def test_not_equal(self): self.assertNotEqual(annotations._NoAnnotation(), annotations.Annotation('bar')) self.assertNotEqual(hash(annotations._NoAnnotation()), hash(annotations.Annotation('bar')))
def test_equal(self): self.assertEqual(annotations._NoAnnotation(), annotations._NoAnnotation()) self.assertEqual(hash(annotations._NoAnnotation()), hash(annotations._NoAnnotation()))
def test_as_correct_adjective(self): self.assertEqual('unannotated', annotations._NoAnnotation().as_adjective()) self.assertEqual('<unannotated>', repr(annotations._NoAnnotation()))