예제 #1
0
 def test_build_match_rule_normal_pluralized_when_create(self):
     action = "create_" + FAKE_RESOURCE_NAME
     target = {}
     result = policy._build_match_rule(action, target, None)
     self.assertEqual("rule:" + action, str(result))
예제 #2
0
 def test_build_match_rule_normal_pluralized_when_create(self):
     action = "create_" + FAKE_RESOURCE_NAME
     target = {}
     result = policy._build_match_rule(action, target, None)
     self.assertEqual("rule:" + action, str(result))
예제 #3
0
 def test_build_match_rule_special_pluralized(self):
     action = "create_" + FAKE_SPECIAL_RESOURCE_NAME
     pluralized = "create_fake_policies"
     target = {}
     result = policy._build_match_rule(action, target, pluralized)
     self.assertEqual("rule:" + action, str(result))
예제 #4
0
 def test_build_match_rule_special_pluralized(self):
     action = "create_" + FAKE_SPECIAL_RESOURCE_NAME
     pluralized = "create_fake_policies"
     target = {}
     result = policy._build_match_rule(action, target, pluralized)
     self.assertEqual("rule:" + action, str(result))