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))
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))