Test that pages get rendered.
(self)
| 30 | ])) |
| 31 | |
| 32 | def testRenderPage(self): |
| 33 | """ |
| 34 | Test that pages get rendered. |
| 35 | """ |
| 36 | |
| 37 | shutil.copy( |
| 38 | os.path.join('cactus', 'tests', 'data', "test-in.html"), |
| 39 | os.path.join(self.path, 'pages', 'test.html') |
| 40 | ) |
| 41 | |
| 42 | |
| 43 | self.site.build() |
| 44 | |
| 45 | with open(os.path.join('cactus', 'tests', 'data', 'test-out.html'), "rU") as expected: |
| 46 | with open(os.path.join(self.path, '.build', 'test.html'), "rU") as obtained: |
| 47 | self.assertEqual(expected.read(), obtained.read()) |
| 48 | |
| 49 | def testPageContext(self): |
| 50 | """ |