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