'Test adding NullBoolean columns'

def test_add_nullbool_column(self):

    db.create_table('test_addnbc', [('spam', models.BooleanField(default=False)), ('eggs', models.IntegerField())])
    db.add_column('test_addnbc', 'add1', models.NullBooleanField())
    db.add_column('test_addnbc', 'add2', models.NullBooleanField(default=True))
    db.execute('INSERT    INTO    test_addnbc    (spam,    eggs)    VALUES    (%s,    1)', [False])
    (false, null1, null2) = db.execute('SELECT    spam,add1,add2    FROM    test_addnbc')[0][0:3]
    self.assertIsNone(null1, 'Null    boolean    field    with    no    value    inserted    returns    non-null')
    self.assertIsNone(null2, 'Null    boolean    field    (added    with    default)    with    no    value    inserted    returns    non-null')
    self.assertEquals(false, False)
    db.delete_table('test_addnbc')
