summaryrefslogtreecommitdiff
path: root/tests/templates/form_view.html
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2007-05-07 12:34:18 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2007-05-07 12:34:18 +0000
commitf073797f4ca8d3e2736d99f76674e43640399c0d (patch)
tree7d4b48a295dd516ddc2eef9db6f93b052a083ab4 /tests/templates/form_view.html
parent64adc413770c4762da5db697c4a332ac749cf4f3 (diff)
Added assertFormError, assertTemplateUsed and assertTemplateNotUsed for use during unit testing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/templates/form_view.html')
-rw-r--r--tests/templates/form_view.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/templates/form_view.html b/tests/templates/form_view.html
new file mode 100644
index 0000000000..1487217547
--- /dev/null
+++ b/tests/templates/form_view.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+{% block title %}Submit data{% endblock %}
+{% block content %}
+<h1>{{ message }}</h1>
+<form method='post' action='.'>
+{% if form.errors %}
+<p class='warning'>Please correct the errors below:</p>
+{% endif %}
+<ul class='form'>
+{{ form }}
+<li><input type='submit' value='Submit'></li>
+</ul>
+</form>
+
+{% endblock %} \ No newline at end of file