from django.contrib.localflavor.py.forms import (PyDepartmentSelect, PyNumberedDepartmentSelect) from django.test import SimpleTestCase class PYLocalFlavorTests(SimpleTestCase): def test_PyDepartmentSelect(self): py = PyDepartmentSelect() out = u'''''' self.assertEqual(py.render('department', 'M'), out) def test_PyNumberedDepartmentSelect(self): py = PyNumberedDepartmentSelect() out = u'''''' self.assertEqual(py.render('department', 'AM'), out)