'Test creation of tables.'

def test_create(self):

    cursor = connection.cursor()
    self.assertRaises(TypeError, db.create_table)
    self.assertRaises(TypeError, db.create_table, 'test1')
    db.create_table('test1', [('email_confirmed', models.BooleanField(default=False))])
    cursor.execute('SELECT    *    FROM    test1')
    try:
        cursor.execute('SELECT    *    FROM    nottheretest1')
    except:
        pass
    else:
        self.fail('Non-existent    table    could    be    selected!')
