Exemple #1
0
 def testAppend(self):
     expected = ("<html><title>setup</title><body>"
                 "s1<table><tr><td>SetUp</td></tr></table>s2"
                 "s3<table><tr><td>SetUp</td></tr></table>s4"
                 "<br>front<table><tr><td>TearDown</td></tr></table>back"
                 "T3<table><tr><td>TearDown</td></tr></table>T4"
                 "</body></html>")
     ParseUtility.append(self._setUp, self._tearDown)
     self._assertEquals(expected, self._setUp)
 def testAppend(self):
     expected = ("<html><title>setup</title><body>"
         "s1<table><tr><td>SetUp</td></tr></table>s2"
         "s3<table><tr><td>SetUp</td></tr></table>s4"
         "<br>front<table><tr><td>TearDown</td></tr></table>back"
         "T3<table><tr><td>TearDown</td></tr></table>T4"
         "</body></html>")
     ParseUtility.append(self._setUp, self._tearDown)
     self._assertEquals(expected, self._setUp)
Exemple #3
0
 def testAppendAll(self):
     expected = ("<html><title>table</title><body>"
                 "s1<table><tr><td>SetUp</td></tr></table>s2"
                 "s3<table><tr><td>SetUp</td></tr></table>"
                 "s4<br>t1<table><tr><td>Test</td></tr></table>t2"
                 "t3<table><tr><td>Test</td></tr></table>"
                 "t4<br>front<table><tr><td>TearDown</td></tr></table>back"
                 "T3<table><tr><td>TearDown</td></tr></table>T4"
                 "</body></html>")
     ParseUtility.append(self._tables, self._tearDown)
     ParseUtility.appendToSetUp(self._setUp, self._tables)
     self._assertEquals(expected, self._setUp)
 def testAppendAll(self):
     expected = ("<html><title>table</title><body>"
         "s1<table><tr><td>SetUp</td></tr></table>s2"
         "s3<table><tr><td>SetUp</td></tr></table>"
         "s4<br>t1<table><tr><td>Test</td></tr></table>t2"
         "t3<table><tr><td>Test</td></tr></table>"
         "t4<br>front<table><tr><td>TearDown</td></tr></table>back"
         "T3<table><tr><td>TearDown</td></tr></table>T4"
         "</body></html>")
     ParseUtility.append(self._tables, self._tearDown)
     ParseUtility.appendToSetUp(self._setUp, self._tables)
     self._assertEquals(expected, self._setUp)
Exemple #5
0
 def testAppendNone(self):
     ParseUtility.append(self._setUp, None)
     self._assertEquals(self.setUpHtml, self._setUp)
 def testAppendNone(self):
     ParseUtility.append(self._setUp, None)
     self._assertEquals(self.setUpHtml, self._setUp)