Fix test method use
Use assertIsNot instead of assertFalse with a separate identity check. Change-Id: Id79e0a72aa9946791cbafd9e0f30c962f2c78001
This commit is contained in:
parent
9d529dd324
commit
53dd6d2dd9
|
@ -261,7 +261,7 @@ class MessageTestCase(test.BaseTestCase):
|
||||||
self.assertEqual(first.params, expected.params)
|
self.assertEqual(first.params, expected.params)
|
||||||
|
|
||||||
# Should have different objects
|
# Should have different objects
|
||||||
self.assertFalse(expected is first)
|
self.assertIsNot(expected, first)
|
||||||
|
|
||||||
# Final translations should be the same
|
# Final translations should be the same
|
||||||
self.assertEqual(expected.translate(), first.translate())
|
self.assertEqual(expected.translate(), first.translate())
|
||||||
|
|
Loading…
Reference in New Issue