Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Removed djangoforms from common testutils

  • Loading branch information...
commit f829ac1efe07a4228af72ef5f0331ac7f255fa73 1 parent e9371f7
@kumar303 kumar303 authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 common/
10 common/
@@ -1,21 +1,21 @@
"""Common test suite utilities."""
-from django import forms as djangoforms
+import django.forms
class FormTestCaseHelper(object):
"""Mixin for unittest.TestCase descendants to aid in testing forms."""
def assertNoFormErrors(self, response):
if response.context is None:
- # if all went well the request probably redirected,
+ # if all went well the request probably redirected,
# otherwise, there will be form objects with errors:
forms = []
for ctx in response.context:
for cdict in ctx:
for v in cdict.values():
- if isinstance(v, djangoforms.BaseForm):
+ if isinstance(v, django.forms.BaseForm):
for form in forms:
- self.assertEquals(form.errors.as_text(), "")
+ self.assertEquals(form.errors.as_text(), "")

0 comments on commit f829ac1

Please sign in to comment.
Something went wrong with that request. Please try again.