Example #1
0
 def test_string_or_none_max_length_with_none(self):
     self.expect(valid.string_or_none_max_length(1), None)
Example #2
0
 def test_string_or_none_max_length_over_limit(self):
     self.expect_raises(valid.string_or_none_max_length(1), 'aa', errors=['The value is greater than max length 1: 2'])
Example #3
0
 def test_string_or_none_max_length(self):
     self.expect(valid.string_or_none_max_length(1), '')
Example #4
0
 def test_string_or_none_max_length_with_none(self):
     self.expect(valid.string_or_none_max_length(1), None)
Example #5
0
 def test_string_or_none_max_length_over_limit(self):
     self.expect_raises(valid.string_or_none_max_length(1), 'aa', errors=['The value is greater than max length 1: 2'])
Example #6
0
 def test_string_or_none_max_length(self):
     self.expect(valid.string_or_none_max_length(1), '')