Skip to content

Commit

Permalink
100% coverage, why not?
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Jul 27, 2024
1 parent 6bfc5ba commit b5ad054
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/incremental/tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,24 @@ def test_comparingDevAndRCDifferent(self):
self.assertTrue(vb == Version("whatever", 1, 0, 0, release_candidate=2, dev=1))
self.assertTrue(va == va)

def test_infComparison(self):
def test_infComparisonSelf(self):
"""
L{_inf} is equal to L{_inf}.
This is a regression test.
"""
o = object()
self.assertEqual(_inf, _inf)
self.assertFalse(_inf < _inf)
self.assertFalse(_inf > _inf)
self.assertTrue(_inf >= _inf)
self.assertTrue(_inf <= _inf)
self.assertFalse(_inf != _inf)

def test_infComparison(self):
"""
L{_inf} is greater than any other object.
"""
o = object()
self.assertTrue(_inf > o)
self.assertFalse(_inf < o)
self.assertTrue(_inf >= o)
Expand Down

0 comments on commit b5ad054

Please sign in to comment.