Use assertIsInstance.

This commit is contained in:
Ned Batchelder
2013-10-07 18:17:40 -04:00
parent 3af6b90b8a
commit 9103fa393c
4 changed files with 10 additions and 10 deletions

View File

@@ -42,6 +42,6 @@ class CeleryConfigTest(unittest.TestCase):
# We don't know the other dict values exactly,
# but we can assert that they take the right form
self.assertTrue(isinstance(result_dict['task_id'], unicode))
self.assertTrue(isinstance(result_dict['time'], float))
self.assertIsInstance(result_dict['task_id'], unicode)
self.assertIsInstance(result_dict['time'], float)
self.assertTrue(result_dict['time'] > 0.0)