示例#1
0
 def test__accepts_good_names(self):
     for name in self.EXPECTED_GOOD_NAMES:
         validate_constraint_label_name(name)
示例#2
0
 def test__rejects_bad_names(self):
     for name in self.EXPECTED_BAD_NAMES:
         with ExpectedException(ConstraintTestException,
                                msg='name=%s' % name):
             validate_constraint_label_name(
                 name, exception_type=ConstraintTestException)