Commit f7c0e1bf authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2439] Add missing isinstance

We check the result is of correct type, so use isinstance. It is unclear
how the original code could pass, though.
parent 4dd6c4cc
......@@ -1128,7 +1128,7 @@ class DiffTest(unittest.TestCase):
self.assertEqual(1, len(self.__data_operations))
self.assertEqual('add', self.__data_operations[0][0])
# Check the returned one is actually RRsetCollection
self.assertTrue(collection, self.Collection)
self.assertTrue(isinstance(collection, self.Collection))
# The collection is just the mock from above, so this doesn't do much
# testing, but we check that the mock got through and didn't get hurt.
self.assertIsNone(collection.find(Name('example.org'), RRClass.IN(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment