def setUp(self): self.config = testing.setUp() # init request for test cases self.dummy_request = testing.DummyRequest() self.dummy_request.params['username'] = '******' self.dummy_request.params['password'] = '******' self.dummy_request.params['email'] = '*****@*****.**' self.dummy_request.params['submit'] = 'Submit' self.zodb = appmaker({})
def test_it(self): root = {} appmaker(root) self.assertEqual(root['app_root']['users']['admin'].username, 'admin') self.assertTrue(root['app_root']['blogs'].__name__)