コード例 #1
0
 def test_not_equal(self):
     self.assertNotEqual(annotations._NoAnnotation(),
                         annotations.Annotation('bar'))
     self.assertNotEqual(hash(annotations._NoAnnotation()),
                         hash(annotations.Annotation('bar')))
コード例 #2
0
 def test_equal(self):
     self.assertEqual(annotations._NoAnnotation(),
                      annotations._NoAnnotation())
     self.assertEqual(hash(annotations._NoAnnotation()),
                      hash(annotations._NoAnnotation()))
コード例 #3
0
 def test_as_correct_adjective(self):
     self.assertEqual('unannotated',
                      annotations._NoAnnotation().as_adjective())
     self.assertEqual('<unannotated>', repr(annotations._NoAnnotation()))
コード例 #4
0
 def test_not_equal(self):
     self.assertNotEqual(annotations._NoAnnotation(),
                         annotations.Annotation('bar'))
     self.assertNotEqual(hash(annotations._NoAnnotation()),
                         hash(annotations.Annotation('bar')))
コード例 #5
0
 def test_equal(self):
     self.assertEqual(annotations._NoAnnotation(),
                      annotations._NoAnnotation())
     self.assertEqual(hash(annotations._NoAnnotation()),
                      hash(annotations._NoAnnotation()))
コード例 #6
0
 def test_as_correct_adjective(self):
     self.assertEqual('unannotated',
                      annotations._NoAnnotation().as_adjective())
     self.assertEqual('<unannotated>', repr(annotations._NoAnnotation()))