def test_get_busstop_for_service(self):
        """ test bus stops for concrete service  """
        request = self.factory.get('/android/requestBusStopsByService/')
        request.user = AnonymousUser()

        reponseView = BusStopsByService()
        response = reponseView.get(request, self.service)

        jsonResponse = json.loads(response.content)

        self.assertEqual(jsonResponse['service'], self.service)
        index = 0
        for busStop in jsonResponse['paraderos']:
            self.assertEqual(
                busStop['latitud'],
                self.busStopObjs[index].latitud)
            self.assertEqual(
                busStop['longitud'],
                self.busStopObjs[index].longitud)
            self.assertEqual(busStop['nombre'], self.busStopObjs[index].name)
            self.assertEqual(busStop['codigo'], self.busStopObjs[index].code)
            index += 1