class PointWidgetTestCase(TestCase): def setUp(self): self.pw = PointWidget() def test_render(self): location = GEOSGeometry('POINT(-120 45)') expected = '<input name="location" type="text" value="45.0, -120.0" />' actual = self.pw.render('location', location) self.assertEqual(expected, actual)
def setUp(self): self.pw = PointWidget()