I'm trying to write a test for the username field and I want to use SimpleTestCase.assertFieldOutput()
. The problem is that I cannot get the fieldclass from the field of my form:
import django
from django.test import TestCase
class UserRegistrationTest(TestCase):
"""Tests for the user registration page."""
def test_username_field(self):
data =
…
Top comments (0)