def test_eq_property(self, lhs: VID, rhs: VID) -> None: # Comparing two VIDs should be the same as comparing their # version numbers. self.assertEqual(lhs == rhs, [lhs.major(), lhs.minor()] == [rhs.major(), rhs.minor()])
def test_next_minor_vid_property(self, vid: VID) -> None: next_vid = vid.next_minor_vid() # The major version should not change self.assertEqual(next_vid.major(), vid.major()) # and the minor should increment self.assertEqual(next_vid.minor(), vid.minor() + 1)