def test_root_init(): from ordr.resources import RootResource root = RootResource('request') assert root.__name__ == None assert root.__parent__ == None assert root.request == 'request' def test_root_acl(): from pyramid.security import Allow, Everyone, DENY_ALL from ordr.resources import RootResource root = RootResource(None) assert root.__acl__() == [(Allow, Everyone, 'view'), DENY_ALL]