def test_items_as_string(self):
     input = ['id', 'name']
     ret = criteria._validate_fields(input)
     self.assertEqual(ret, input)
 def test_as_tuple(self):
     input = ()
     ret = criteria._validate_fields(input)
     self.assertEqual(ret, list(input))
 def test_as_none(self):
     ret = criteria._validate_fields(None)
     self.assertTrue(ret is None)
 def test_as_list(self):
     input = []
     ret = criteria._validate_fields(input)
     self.assertEqual(ret, input)
Beispiel #5
0
 def test_items_as_string(self):
     input = ['id', 'name']
     ret = criteria._validate_fields(input)
     self.assertEqual(ret, input)
Beispiel #6
0
 def test_as_none(self):
     ret = criteria._validate_fields(None)
     self.assertTrue(ret is None)
Beispiel #7
0
 def test_as_tuple(self):
     input = ()
     ret = criteria._validate_fields(input)
     self.assertEqual(ret, list(input))
Beispiel #8
0
 def test_as_list(self):
     input = []
     ret = criteria._validate_fields(input)
     self.assertEqual(ret, input)