use assert method
This commit is contained in:
parent
d02441ea2f
commit
8b0ef21c15
|
@ -8,7 +8,7 @@ class StructSeqTest(unittest.TestCase):
|
|||
|
||||
def test_tuple(self):
|
||||
t = time.gmtime()
|
||||
assert isinstance(t, tuple)
|
||||
self.assertIsInstance(t, tuple)
|
||||
astuple = tuple(t)
|
||||
self.assertEqual(len(t), len(astuple))
|
||||
self.assertEqual(t, astuple)
|
||||
|
|
Loading…
Reference in New Issue