def drop_database(name=TEST_DB_NAME, suffix=None):
    assert bool(name) ^ bool(suffix), 'name and suffix cannot be used together'

    if suffix:
        name = '%s_%s' % (name, suffix)

    if get_db_engine() == 'postgresql_psycopg2':
        r = run_cmd('psql', 'postgres', '-c', 'DROP DATABASE %s' % name)
        assert ('DROP DATABASE' in force_text(r.std_out) or
                'does not exist' in force_text(r.std_err))
        return

    if get_db_engine() == 'mysql':
        r = run_mysql('-e', 'DROP DATABASE %s' % name)
        assert ('database doesn\'t exist' in force_text(r.std_err) or
                r.status_code == 0)
        return

    if get_db_engine() == 'sqlite3':
        if name == ':memory:':
            raise AssertionError(
                'sqlite in-memory database cannot be dropped!')
        if os.path.exists(name):
            os.unlink(name)
        return

    raise AssertionError(get_db_engine() % '%s cannot be tested properly!')
dataset/ETHPy150Open pytest-dev/pytest-django/pytest_django_test/db_helpers.py/drop_database/swapped operands of `%`