def test_021_validate_ruletype_invalid(self):
     """Default: invalid ruletype"""
     with self.assertRaises(InvalidDefaultType):
         validate_ruletype("INVALID")
Exemple #2
0
 def test_021_validate_ruletype_invalid(self):
     """Default: invalid ruletype"""
     with self.assertRaises(InvalidDefaultType):
         validate_ruletype("INVALID")
 def test_020_validate_ruletype(self):
     """Default: validate rule type."""
     for r in [
             "default_user", "default_role", "default_type", "default_range"
     ]:
         self.assertEqual(r, validate_ruletype(r))
Exemple #4
0
 def test_020_validate_ruletype(self):
     """Default: validate rule type."""
     for r in ["default_user", "default_role", "default_type", "default_range"]:
         self.assertEqual(r, validate_ruletype(r))