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.')
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.')