Ejemplo n.º 1
0
 def test_not_equal(self):
     self.assertNotEqual(annotations._NoAnnotation(),
                         annotations.Annotation('bar'))
     self.assertNotEqual(hash(annotations._NoAnnotation()),
                         hash(annotations.Annotation('bar')))
Ejemplo n.º 2
0
 def test_equal(self):
     self.assertEqual(annotations._NoAnnotation(),
                      annotations._NoAnnotation())
     self.assertEqual(hash(annotations._NoAnnotation()),
                      hash(annotations._NoAnnotation()))
Ejemplo n.º 3
0
 def test_as_correct_adjective(self):
     self.assertEqual('unannotated',
                      annotations._NoAnnotation().as_adjective())
     self.assertEqual('<unannotated>', repr(annotations._NoAnnotation()))
 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()))