~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to turbosimpletal/tests/test_zpt.py

begin by renaming some things

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from turbozpt import TurboZpt
 
1
from turbosimpletal import TurboZpt
2
2
from turbogears import controllers
3
3
from turbogears import testutil
4
4
import turbogears
8
8
 
9
9
def test_template_lookup():
10
10
    tc = TurboZpt()
11
 
    template = tc.load_template("turbozpt.tests.simple")
 
11
    template = tc.load_template("turbosimpletal.tests.simple")
12
12
    assert template
13
13
    TITLE="test"
14
14
    NAME="World"
19
19
class TestRoot(controllers.Root):
20
20
    def index(self, name, title="test"):
21
21
        return dict(name=name, title=title)
22
 
    index = turbogears.expose(html="zpt:turbozpt.tests.simple")(index)
 
22
    index = turbogears.expose(html="zpt:turbosimpletal.tests.simple")(index)
23
23
 
24
24
def test_real_life_situation():
25
25
    cherrypy.root = TestRoot()