Exemplo n.º 1
0
 def test_resolve_alias_regular_permission(self):
     component = Permissions(Mock())
     result = component.resolve_alias(["foo", "bar", "baz"], {})
     self.assertEqual(result, ["foo", "bar", "baz"])
Exemplo n.º 2
0
 def test_resolve_alias(self):
     component = Permissions(Mock())
     result = component.resolve_alias("alias",
                                      {"alias": ["foo", "bar", "baz"]})
     self.assertEqual(result, ["foo", "bar", "baz"])