'Tests basic usage of the migrate command.'

@override_settings(MIGRATION_MODULES={'migrations': 'migrations.test_migrations'})
def test_migrate(self):

    self.assertTableNotExists('migrations_author')
    self.assertTableNotExists('migrations_tribble')
    self.assertTableNotExists('migrations_book')
    call_command('migrate', 'migrations', '0001', verbosity=0)
    self.assertTableExists('migrations_author')
    self.assertTableExists('migrations_tribble')
    self.assertTableNotExists('migrations_book')
    call_command('migrate', verbosity=0)
    self.assertTableExists('migrations_author')
    self.assertTableNotExists('migrations_tribble')
    self.assertTableExists('migrations_book')
    call_command('migrate', 'migrations', 'zero', verbosity=0)
    self.assertTableNotExists('migrations_author')
    self.assertTableNotExists('migrations_tribble')
    self.assertTableNotExists('migrations_book')
