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
dedcfbd0
Commit
dedcfbd0
authored
Sep 27, 2010
by
Rhett Garber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testing for section/partial bug
parent
1e72b7a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
tests/test_examples.py
+8
-1
No files found.
tests/test_examples.py
View file @
dedcfbd0
...
...
@@ -12,6 +12,7 @@ from examples.delimiters import Delimiters
from
examples.unicode_output
import
UnicodeOutput
from
examples.unicode_input
import
UnicodeInput
from
examples.nested_context
import
NestedContext
from
examples.partial_section
import
PartialSection
class
TestView
(
unittest
.
TestCase
):
def
test_comments
(
self
):
...
...
@@ -55,7 +56,8 @@ Again, Welcome!""")
self
.
assertEquals
(
view
.
render
(),
"""Welcome
-------
Again, Welcome!
## Again, Welcome! ##
"""
)
...
...
@@ -68,6 +70,11 @@ Again, Welcome!
* Then, surprisingly, it worked the third time.
"""
)
def
test_partial_sections
(
self
):
view
=
PartialSection
()
self
.
assertEquals
(
view
.
render
(),
"""Welcome, we're loading partials
This is item aThis is item b"""
)
def
test_nested_context
(
self
):
self
.
assertEquals
(
NestedContext
()
.
render
(),
"one and foo and two"
)
...
...
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