MCPcopy
hub / github.com/eudicots/Cactus / testRenderPage

Method testRenderPage

cactus/tests/test_basic.py:32–47  ·  view source on GitHub ↗

Test that pages get rendered.

(self)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected