Add missing assertions for APIVersion comparison
The test already had the assertion for __lt__ methods. Adding assertions for __eq__ and __gt__ methods. This insreases code coverage. Change-Id: I544cd61a7028421986df961eaa3af2155137ab5a Partial-Bug: #1364800
This commit is contained in:
parent
428760fa8f
commit
791b9f4a81
@ -77,6 +77,8 @@ class APIVersionTestCase(utils.TestCase):
|
||||
self.assertLess(v5, v2)
|
||||
self.assertEqual(v_null, v_null)
|
||||
self.assertRaises(TypeError, v1.__le__, "2.1")
|
||||
self.assertRaises(TypeError, v1.__eq__, "2.1")
|
||||
self.assertRaises(TypeError, v1.__gt__, "2.1")
|
||||
|
||||
def test_version_matches(self):
|
||||
v1 = api_versions.APIVersion("2.0")
|
||||
|
Loading…
Reference in New Issue
Block a user