Пример #1
0
 def test_list_of_strings_validator_multiple(self):
     # This validator should turn a single key into a list of keys.
     self.assertEqual(
         list_of_strings_validator(['ant', 'bee', 'cat']),
         ['ant', 'bee', 'cat'])
Пример #2
0
 def test_list_of_strings_validator_single(self):
     # This validator should turn a single key into a list of keys.
     self.assertEqual(list_of_strings_validator('ant'), ['ant'])
Пример #3
0
 def test_list_of_strings_validator_single(self):
     # This validator should turn a single key into a list of keys.
     self.assertEqual(list_of_strings_validator('ant'), ['ant'])
Пример #4
0
 def test_list_of_strings_validator_multiple(self):
     # This validator should turn a single key into a list of keys.
     self.assertEqual(list_of_strings_validator(['ant', 'bee', 'cat']),
                      ['ant', 'bee', 'cat'])
Пример #5
0
 def test_list_of_strings_validator_empty_list(self):
     # This validator should return an empty list for an empty string input.
     self.assertEqual(list_of_strings_validator(''), [])