'Test field dependency in the create table form'

def test_create_table_dependencies(self):

    resp = self.client.post(('/beeswax/create/create_table/%s' % self.db_name), {'table-name': 'my_table', 'table-row_format': 'SerDe', 'table-file_format': 'InputFormat', 'columns-0-column_name': 'my_col', 'columns-0-column_type': 'map', 'columns-0-_exists': 'True', 'columns-1-column_name': 'my_partition', 'columns-1-column_type': 'string', 'columns-1-is_partition_key': 'on', 'columns-1-_exists': 'True', 'columns-next_form_id': '2', 'partitions-next_form_id': '0', 'create': 'Create    table'})
    assert_true(resp.context['table_form'].errors['input_format_class'])
    assert_true(resp.context['table_form'].errors['output_format_class'])
    assert_true(resp.context['table_form'].errors['serde_name'])
    assert_true(resp.context['table_form'].errors['serde_properties'])
    assert_true(resp.context['table_form'].errors['serde_properties'])
    assert_true(resp.context['columns_form'].forms[0].errors['map_key_type'])
    assert_true(resp.context['columns_form'].forms[0].errors['map_value_type'])
