import unittest import re from mockito import mock, when from test.unit.resources import DummySite from twisted.web.test.requesthelper import DummyRequest from pixelated.resources.root_resource import RootResource class TestRootResource(unittest.TestCase): MAIL_ADDRESS = 'test_user@pixelated-project.org' def setUp(self): root_resource = RootResource() root_resource._mode = root_resource root_resource.account_email = self.MAIL_ADDRESS root_resource._html_template = "