''' Tests for the account resources ''' def test_registration_init(): from ordr.resources.account import RegistrationResource resource = RegistrationResource( request='some request', name='a name', parent='the parent' ) assert resource.__name__ == 'a name' assert resource.__parent__ == 'the parent' assert resource.request == 'some request' def test_registration_acl(): from pyramid.security import Allow, Everyone, DENY_ALL from ordr.resources.account import RegistrationResource resource = RegistrationResource('some request', 'a name', 'the parent') assert resource.__acl__() == [(Allow, Everyone, 'view'), DENY_ALL]