def test_dictionary_field_get_prep_value_list(self, mock_jd): ret = DictionaryField() input_value = ['foo', 'bar'] ret.get_prep_value(value=input_value) mock_jd.assert_called_with(input_value)
def test_dictionary_field_get_prep_value_list(self, mock_jd): ret = DictionaryField() input_value = ['foo', 'bar'] ret.get_prep_value(value=input_value) mock_jd.assert_called_with(input_value)
def test_dictionary_field_get_prep_value_str(self): ret = DictionaryField() self.assertEqual('foo', ret.get_prep_value(value='foo'))
def test_dictionary_field_get_prep_value_str(self): ret = DictionaryField() self.assertEqual('foo', ret.get_prep_value(value='foo'))