@override_settings(MIGRATION_MODULES={
        "testapp": "testapp.list_default_migrations",
    })
    def test_adding_field_with_default(self):
        table_name = 'testapp_intlistdefaultmodel'
        table_names = connection.introspection.table_names
        with connection.cursor() as cursor:
            assert table_name not in table_names(cursor)

        call_command('migrate', 'testapp',
                     verbosity=0, skip_checks=True)
        with connection.cursor() as cursor:
            assert table_name in table_names(cursor)

        call_command('migrate', 'testapp', 'zero',
                     verbosity=0, skip_checks=True)
        with connection.cursor() as cursor:
            assert table_names(cursor) not in table_name
dataset/ETHPy150Open adamchainz/django-mysql/tests/testapp/test_listcharfield.py/TestMigrations.test_adding_field_with_default/swapped operands of `not in`