Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def test_dictionary_field_get_prep_value_str(self):
     ret = DictionaryField()
     self.assertEqual('foo', ret.get_prep_value(value='foo'))
Ejemplo n.º 4
0
 def test_dictionary_field_get_prep_value_str(self):
     ret = DictionaryField()
     self.assertEqual('foo', ret.get_prep_value(value='foo'))