示例#1
0
    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({})
示例#2
0
    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({})
示例#3
0
 def test_it(self):
     root = {}
     appmaker(root)
     self.assertEqual(root['app_root']['users']['admin'].username,
                      'admin')
     self.assertTrue(root['app_root']['blogs'].__name__)
示例#4
0
 def test_it(self):
     root = {}
     appmaker(root)
     self.assertEqual(root['app_root']['users']['admin'].username, 'admin')
     self.assertTrue(root['app_root']['blogs'].__name__)