@@ -569,7 +569,7 @@ def test_evaluate_no_resolver_key_missing(self):
569
569
self .assertEqual ('' , utils .Template .render ("{{missing}}" ))
570
570
571
571
def test_evaluate_keys (self ):
572
- self .assertEqual ('value' , utils .Template .render ("{{test['test'] }}" , {
572
+ self .assertEqual ('value' , utils .Template .render ("{{test}}" , {
573
573
'test' : 'value'
574
574
}))
575
575
@@ -587,9 +587,9 @@ def test_evaluate_split(self):
587
587
'test' : 'this is a test'
588
588
}))
589
589
590
- def test_valuate_keys (self ):
590
+ def test_evaluate_keys (self ):
591
591
self .assertEqual ('aceh' , utils .Template .render ('{{test|keys|join}}' , {
592
- 'test' , {'a' :'b' , 'c' :'d' , 'e' :'f' , 'h' :'i' }
592
+ 'test' : {'a' :'b' , 'c' :'d' , 'e' :'f' , 'h' :'i' }
593
593
}))
594
594
595
595
def test_evaluate_long (self ):
@@ -605,7 +605,6 @@ def test_evaluate_long_quotes(self):
605
605
self .assertEqual ('\n hello """ world """\n ' , utils .Template .render (_text ))
606
606
607
607
def test_evaluate_long_html (self ):
608
- _context = context .Context ()
609
608
_text = """
610
609
<html>
611
610
<body>
@@ -616,7 +615,6 @@ def test_evaluate_long_html(self):
616
615
self .assertEqual ('\n <html>\n <body>\n <a href="http://github.com/framarama/">framaRAMA</a>\n </body>\n </html>\n ' , utils .Template .render (_text ))
617
616
618
617
def test_evaluate_long_script (self ):
619
- _context = context .Context ()
620
618
_text = """
621
619
<html>
622
620
<head>
0 commit comments