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
fabc097d
Commit
fabc097d
authored
Mar 23, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LoaderTests now uses the AssertStringMixin.
parent
eaee99c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
tests/test_custom_template.py
+2
-6
No files found.
tests/test_custom_template.py
View file @
fabc097d
...
...
@@ -20,6 +20,7 @@ from pystache.custom_template import Loader
from
pystache.locator
import
Locator
from
pystache.reader
import
Reader
from
.common
import
AssertIsMixin
from
.common
import
AssertStringMixin
from
.common
import
DATA_DIR
from
.data.views
import
SampleView
from
.data.views
import
NonAscii
...
...
@@ -135,18 +136,13 @@ class ViewTestCase(unittest.TestCase):
self
.
assertEquals
(
view
.
render
(),
"""one, two, three, empty list"""
)
class
LoaderTests
(
unittest
.
TestCase
,
AssertIsMixin
):
class
LoaderTests
(
unittest
.
TestCase
,
AssertIsMixin
,
AssertStringMixin
):
"""
Tests the custom_template.Loader class.
"""
def
assertString
(
self
,
actual
,
expected
):
# TODO: use the assertStrings mixin.
self
.
assertEquals
(
type
(
actual
),
type
(
expected
))
self
.
assertEquals
(
actual
,
expected
)
def
test_init__defaults
(
self
):
loader
=
Loader
()
...
...
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