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