Exemple #1
0
 def test_choices_not_valid_choice(self):
     self.expect_raises(valid.choice(valid.string, ('a', 'b', 'c')), 'd',
         errors=['The value is not a valid choice: d']
     )
Exemple #2
0
 def test_choices_not_valid_choice(self):
     self.expect_raises(valid.choice(valid.string, ('a', 'b', 'c')), 'd',
         errors=['The value is not a valid choice: d']
     )
Exemple #3
0
 def test_choices(self):
     self.expect(valid.choice(valid.string, ('a', 'b', 'c')), 'a')
Exemple #4
0
 def test_choices(self):
     self.expect(valid.choice(valid.string, ('a', 'b', 'c')), 'a')