'Test add_exclude_columns, edit_exclude_columns, show_exclude_columns'

def test_excluded_cols(self):

    client = self.app.test_client()
    rv = self.login(client, DEFAULT_ADMIN_USER, DEFAULT_ADMIN_PASSWORD)
    rv = client.get('/model22view/add')
    eq_(rv.status_code, 200)
    data = rv.data.decode('utf-8')
    ok_(('field_string' in data))
    ok_(('field_integer' in data))
    ok_(('field_float' in data))
    ok_(('field_date' in data))
    ok_(('excluded_string' not in data))
    self.insert_data2()
    model2 = Model2.objects[0]
    rv = client.get('/model22view/edit/{0}'.format(model2.id))
    eq_(rv.status_code, 200)
    data = rv.data.decode('utf-8')
    ok_(('field_string' in data))
    ok_(('field_integer' in data))
    ok_(('field_float' in data))
    ok_(('field_date' in data))
    ok_(('excluded_string' not in data))
    rv = client.get('/model22view/show/{0}'.format(model2.id))
    eq_(rv.status_code, 200)
    data = rv.data.decode('utf-8')
    ok_(('Field    String' in data))
    ok_(('Field    Integer' in data))
    ok_(('Field    Float' in data))
    ok_(('Field    Date' in data))
    ok_(('Excluded    String' not in data))
    self.clean_data()
