@skipIfSpatialite
    def test_filter_within_on_lines(self):

        # Get lines
        response = self.client.get(golden_gate_park_query % '/api/v1/geonotes/?lines__within=%s', HTTP_ACCEPT='application/json')
        self.assertEqual(response.status_code, 200)

        data = json.loads(response.content.decode('utf-8'))
        # We get back the line inside Golden Gate park!
        self.assertEqual(data['objects'][0]['content'], "A path inside Golden Gate Park! Huzzah!")
        self.assertEqual(data['objects'][0]['lines']['type'], 'MultiLineString')
        self.assertAlmostEqual(data['objects'][0]['lines']['coordinates'][0][0][0], -122.504544, places=5)
        self.assertAlmostEqual(data['objects'][0]['lines']['coordinates'][0][0][1], 37.767002, places=5)
        self.assertAlmostEqual(data['objects'][0]['lines']['coordinates'][0][1][0], -122.499995, places=5)
        self.assertAlmostEqual(data['objects'][0]['lines']['coordinates'][0][1][1], 37.768223, places=5)
dataset/ETHPy150Open django-tastypie/django-tastypie/tests/gis/tests/views.py/MoreViewsTestCase.test_filter_within_on_lines/swapped operands of `%`