Merge "Replace assertTrue(*>*) with assertGreater"

This commit is contained in:
Jenkins 2017-01-24 00:34:58 +00:00 committed by Gerrit Code Review
commit df569bdd09
3 changed files with 3 additions and 3 deletions

View File

@ -182,7 +182,7 @@ class TestClaimsMongoDB(base.V1Base):
self.assertEqual(60, claim['ttl'])
estimated_age = timeutils.delta_seconds(creation, query)
self.assertTrue(estimated_age > claim['age'])
self.assertGreater(estimated_age, claim['age'])
# Delete the claim
self.simulate_delete(claim['href'], 'bad_id')

View File

@ -233,7 +233,7 @@ class TestClaimsMongoDB(base.V1_1Base):
self.assertEqual(60, claim['ttl'])
estimated_age = timeutils.delta_seconds(creation, query)
self.assertTrue(estimated_age > claim['age'])
self.assertGreater(estimated_age, claim['age'])
# Delete the claim
self.simulate_delete(claim['href'], headers=self.headers)

View File

@ -234,7 +234,7 @@ class TestClaimsMongoDB(base.V2Base):
self.assertEqual(60, claim['ttl'])
estimated_age = timeutils.delta_seconds(creation, query)
self.assertTrue(estimated_age > claim['age'])
self.assertGreater(estimated_age, claim['age'])
# Delete the claim
self.simulate_delete(claim['href'], headers=self.headers)