Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pystache_custom
Commits
f6ea985c
Commit
f6ea985c
authored
Jan 01, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue_24' into development: closing issue #24
parents
3fbae97b
1a9a2194
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
tests/test_renderengine.py
+14
-1
No files found.
tests/test_renderengine.py
View file @
f6ea985c
...
...
@@ -283,5 +283,18 @@ class RenderTests(unittest.TestCase):
"""
template
=
'{{=[[ ]]=}}[[#foo]]bar[[/foo]]'
context
=
{
'foo'
:
True
}
self
.
_assert_render
(
"bar"
,
template
,
context
)
self
.
_assert_render
(
u
"bar"
,
template
,
context
)
def
test_sections__nested_truthy
(
self
):
"""
Check that "nested truthy" sections get rendered.
Test case for issue #24: https://github.com/defunkt/pystache/issues/24
This test is copied from the spec. We explicitly include it to
prevent regressions for those who don't pull down the spec tests.
"""
template
=
"| A {{#bool}}B {{#bool}}C{{/bool}} D{{/bool}} E |"
context
=
{
'bool'
:
True
}
self
.
_assert_render
(
u"| A B C D E |"
,
template
,
context
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment