Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 21 lines (19 sloc) 0.651 kb
79d432f @shabda Initial results from inspectdb
shabda authored
1 """
2 This file demonstrates two different styles of tests (one doctest and one
3 unittest). These will both pass when you run "manage.py test".
4
5 Replace these with more appropriate tests for your application.
6 """
7
8 from django.test import TestCase
b174398 @shabda Added template tags
shabda authored
9 from django.template import Template, Context
79d432f @shabda Initial results from inspectdb
shabda authored
10 class SimpleTest(TestCase):
b174398 @shabda Added template tags
shabda authored
11 def test_template_tags(self):
12 template_string = """
13 {% load wordpress_tags %}
14 {% show_comments 5 %}
15 {% show_posts 5 %}
16 {% populate_comments 5 as commnts%}
17 {% populate_posts 10 as posts %}
79d432f @shabda Initial results from inspectdb
shabda authored
18 """
b174398 @shabda Added template tags
shabda authored
19 t = Template(template_string)
20 c = Context({})
21 t.render(c)
Something went wrong with that request. Please try again.