Example #1
0
    def test___init__(self):
        """Assert the request is stored properly."""
        request = testing.DummyRequest()

        composes_resource = composes.Composes(request)

        assert composes_resource.request is request
Example #2
0
    def test___acl__(self):
        """Assert the permissions are correct."""
        request = testing.DummyRequest()
        composes_resource = composes.Composes(request)

        acls = composes_resource.__acl__()

        assert acls == [(security.Allow, security.Everyone, 'view_composes')]