Exemple #1
0
 def test_construct_form(self):
     tool = ObjectTool(User)
     tool = TestTool(User)
     tool.construct_form(MockRequest())
 def test_construct_form(self):
     tool = ObjectTool(self.user_klass)
     tool = TestTool(self.user_klass)
     tool.construct_form(MockRequest())
 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.')
Exemple #4
0
 def test_construct_form(self):
     tool = ObjectTool(User)
     tool = TestTool(User)
     tool.construct_form(MockRequest())
Exemple #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.')