Example #1
0
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)
Example #2
0
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)
Example #3
0
 def setUp(self):
     self.pw = PointWidget()
Example #4
0
 def setUp(self):
     self.pw = PointWidget()