[test] use assertNotIsInstance instead of assert_(not isinstance(...))
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 18 Apr 2014 14:24:52 +0200
changeset 9723 46ad7d474d3d
parent 9722 c0ae36be84ee
child 9729 1fe9dad662e5
[test] use assertNotIsInstance instead of assert_(not isinstance(...))
test/unittest_migration.py
--- a/test/unittest_migration.py	Wed Apr 23 18:19:37 2014 +0200
+++ b/test/unittest_migration.py	Fri Apr 18 14:24:52 2014 +0200
@@ -76,7 +76,7 @@
     def test_filter_scripts_for_mode(self):
         config = CubicWebConfiguration('data')
         config.verbosity = 0
-        self.assert_(not isinstance(config.migration_handler(), ServerMigrationHelper))
+        self.assertNotIsInstance(config.migration_handler(), ServerMigrationHelper)
         self.assertIsInstance(config.migration_handler(), MigrationHelper)
         config = self.config
         config.__class__.name = 'repository'