def get(self, query_id): return dropdown_values(query_id)
def test_dropdown_values_compromises_for_first_column(self, _): values = dropdown_values(1) self.assertEquals(values, [{"name": 5, "value": 5}])
def test_dropdown_supports_upper_cased_columns(self, _): values = dropdown_values(1) self.assertEquals(values, [{"name": 5, "value": 5}])
def test_dropdown_values_prefers_name_and_value_columns(self, _): values = dropdown_values(1) self.assertEquals(values, [{"name": "John", "value": "John Doe"}])