diff options
Diffstat (limited to 'tests/migrations')
| -rw-r--r-- | tests/migrations/test_base.py | 4 | ||||
| -rw-r--r-- | tests/migrations/test_state.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/migrations/test_base.py b/tests/migrations/test_base.py index 94ff6ff0c9..45c5472b0f 100644 --- a/tests/migrations/test_base.py +++ b/tests/migrations/test_base.py @@ -50,10 +50,10 @@ class MigrationTestBase(TransactionTestCase): return [c.null_ok for c in self.get_table_description(table, using=using) if c.name == column][0] def assertColumnNull(self, table, column, using='default'): - self.assertEqual(self._get_column_allows_null(table, column, using), True) + self.assertTrue(self._get_column_allows_null(table, column, using)) def assertColumnNotNull(self, table, column, using='default'): - self.assertEqual(self._get_column_allows_null(table, column, using), False) + self.assertFalse(self._get_column_allows_null(table, column, using)) def assertIndexExists(self, table, columns, value=True, using='default', index_type=None): with connections[using].cursor() as cursor: diff --git a/tests/migrations/test_state.py b/tests/migrations/test_state.py index 0f0f918597..e9bdac93c5 100644 --- a/tests/migrations/test_state.py +++ b/tests/migrations/test_state.py @@ -1052,7 +1052,7 @@ class ModelStateTests(SimpleTestCase): ['searchablelocation_ptr', 'name', 'bus_routes', 'inbound'] ) self.assertEqual(station_state.fields[1][1].max_length, 128) - self.assertEqual(station_state.fields[2][1].null, False) + self.assertIs(station_state.fields[2][1].null, False) self.assertEqual( station_state.options, {'abstract': False, 'swappable': 'TEST_SWAPPABLE_MODEL', 'indexes': [], 'constraints': []} |
