def _syncdb(): print "syncdb" sync = Command() sync.handle() print "done syncdb"
def _syncdb(): sync = Command() sync.handle()
def testSetUp(self): from django.db import connection from django.core.management.commands.syncdb import Command as SyncDB syncdb = SyncDB() syncdb.handle() connection.cursor()