from django.tests import TestCase
class MyTests(TestCase):
def test_forms(self):
response = self.client.post("/my/form/", {'something':'something'})
self.assertFormError(response, 'form', 'something', 'This field is required.')
Where "form" is the context variable name for your form, "something" is the field name, and "This field is required." is the exact text of the expected validation error.