示例#1
0
 def testLayout(self):
     from djpcms.apps.fileupload import FileUploadForm
     f = FileUploadForm(action = '/bla/')
     layout = f.layout
     c = layout.allchildren[0]
     self.assertEqual(c.tag,None)
     html = f.render()
     self.assertTrue('button' in html)
示例#2
0
 def testLayout(self):
     from djpcms.apps.fileupload import FileUploadForm
     f = FileUploadForm(action='/bla/')
     layout = f.layout
     c = layout.allchildren[0]
     self.assertEqual(c.tag, None)
     html = f.render()
     self.assertTrue('button' in html)
示例#3
0
 def testForm(self):
     from djpcms.apps.fileupload import FileUploadForm
     f = FileUploadForm(action = '/bla/')
     self.assertTrue(f.form)
     html = f.render()
     self.assertTrue("action='/bla/'" in html)
示例#4
0
 def testForm(self):
     from djpcms.apps.fileupload import FileUploadForm
     f = FileUploadForm(action='/bla/')
     self.assertTrue(f.form)
     html = f.render()
     self.assertTrue("action='/bla/'" in html)