'Test ModelView\'s formatters_columns'

def test_formatted_cols(self):

    client = self.app.test_client()
    rv = self.login(client, DEFAULT_ADMIN_USER, DEFAULT_ADMIN_PASSWORD)
    self.insert_data()
    rv = client.get('/model1formattedview/list/')
    eq_(rv.status_code, 200)
    data = rv.data.decode('utf-8')
    ok_(('FORMATTED_STRING' in data))
    rv = client.get('/model1formattedview/show/1')
    eq_(rv.status_code, 200)
    data = rv.data.decode('utf-8')
    ok_(('FORMATTED_STRING' in data))
