if settings.DATABASE_NAME != 'my_test_db':
    sys.exit(
        'You cannot run tests using the %s database. Please switch DATABASE_NAME to my_test_db in settings.py'
         % settings.DATABASE_NAME)
How do I test a django database schema?