THRIFT-109. python: Use self.assert* instead of assert in tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@705734 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/py/SerializationTest.py b/test/py/SerializationTest.py
index 56bccbf..3b34661 100755
--- a/test/py/SerializationTest.py
+++ b/test/py/SerializationTest.py
@@ -48,13 +48,13 @@
def testForwards(self):
obj = self._deserialize(VersioningTestV2, self._serialize(self.v1obj))
- assert obj.begin_in_both == self.v1obj.begin_in_both
- assert obj.end_in_both == self.v1obj.end_in_both
+ self.assertEquals(obj.begin_in_both, self.v1obj.begin_in_both)
+ self.assertEquals(obj.end_in_both, self.v1obj.end_in_both)
def testBackwards(self):
obj = self._deserialize(VersioningTestV1, self._serialize(self.v2obj))
- assert obj.begin_in_both == self.v2obj.begin_in_both
- assert obj.end_in_both == self.v2obj.end_in_both
+ self.assertEquals(obj.begin_in_both, self.v2obj.begin_in_both)
+ self.assertEquals(obj.end_in_both, self.v2obj.end_in_both)
class NormalBinaryTest(AbstractTest):