This does not work in Python 3 since filter does not return a list. Fix this by
replacing it with a list comprehension.
Blueprint: neutron-python3
Change-Id: I59a63f7adedaf2217aa8fc9aae63045b4e620361
fake_field='xxx')
def _validate_objects(self, expected, observed):
- self.assertFalse(
- filter(lambda obj: not self._is_test_class(obj), observed))
+ self.assertTrue(all(self._is_test_class(obj) for obj in observed))
self.assertEqual(
sorted(expected),
sorted(get_obj_db_fields(obj) for obj in observed))