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
91a2f860
Commit
91a2f860
authored
Apr 28, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stubbed out tests/test_parser.py.
parent
8929d6c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
pystache/tests/test_parser.py
+26
-0
No files found.
pystache/tests/test_parser.py
0 → 100644
View file @
91a2f860
# coding: utf-8
"""
Unit tests of parser.py.
"""
import
unittest
from
pystache.parser
import
_compile_template_re
as
make_re
class
RegularExpressionTestCase
(
unittest
.
TestCase
):
"""Tests the regular expression returned by _compile_template_re()."""
def
test_re
(
self
):
"""
Test getting a key from a dictionary.
"""
re
=
make_re
()
match
=
re
.
search
(
"{{test}}"
)
self
.
assertEqual
(
match
.
start
(),
0
)
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