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
17d70ba6
Commit
17d70ba6
authored
Mar 19, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delimiters test no longer depends on pystache.View.
parent
1055dd9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
examples/delimiters.py
+1
-4
tests/test_examples.py
+4
-1
No files found.
examples/delimiters.py
View file @
17d70ba6
import
pystache
class
Delimiters
(
pystache
.
View
):
template_path
=
'examples'
class
Delimiters
(
object
):
def
first
(
self
):
return
"It worked the first time."
...
...
tests/test_examples.py
View file @
17d70ba6
...
...
@@ -51,7 +51,10 @@ Again, Welcome!""")
## Again, Welcome! ##"""
)
def
test_delimiters
(
self
):
assert_strings
(
self
,
Delimiters
()
.
render
(),
"""* It worked the first time.
renderer
=
Renderer
()
expected
=
renderer
.
render
(
Delimiters
())
assert_strings
(
self
,
expected
,
"""
\
* It worked the first time.
* And it worked the second time.
* Then, surprisingly, it worked the third time.
"""
)
...
...
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