Esempio n. 1
0
 def test_construct_form(self):
     tool = ObjectTool(User)
     tool = TestTool(User)
     tool.construct_form(MockRequest())
Esempio n. 2
0
 def test_construct_form(self):
     tool = ObjectTool(self.user_klass)
     tool = TestTool(self.user_klass)
     tool.construct_form(MockRequest())
Esempio n. 3
0
 def test_init(self):
     tool = ObjectTool(self.user_klass)
     self.failUnless(tool.model == self.user_klass, 'Object Tool should have \
             self.model set on init.')
Esempio n. 4
0
 def test_construct_form(self):
     tool = ObjectTool(User)
     tool = TestTool(User)
     tool.construct_form(MockRequest())
Esempio n. 5
0
 def test_init(self):
     tool = ObjectTool(User)
     self.failUnless(
         tool.model == User, 'Object Tool should have \
             self.model set on init.')
 def test_init(self):
     tool = ObjectTool(User)
     self.assertTrue(tool.model == User,
                     'Object Tool should have self.model set on init.')