def test_is_between_latitudes_below(self):
        min_lat = 30
        location_lat = 10
        max_lat = 50

        obj = MapObject(location_lat=location_lat)
        self.assertFalse(obj.is_between_latitudes(min_lat=min_lat, max_lat=max_lat))
    def test_is_between_latitudes_inside(self):
        min_lat = 30
        location_lat = 40
        max_lat = 50

        obj = MapObject(location_lat=location_lat)
        self.assertTrue(obj.is_between_latitudes(min_lat=min_lat, max_lat=max_lat))
Ejemplo n.º 3
0
    def test_is_between_latitudes_above(self):
        min_lat = 30
        location_lat = 60
        max_lat = 50

        obj = MapObject(location_lat=location_lat)
        self.assertFalse(
            obj.is_between_latitudes(min_lat=min_lat, max_lat=max_lat))
Ejemplo n.º 4
0
    def test_is_between_latitudes_inside(self):
        min_lat = 30
        location_lat = 40
        max_lat = 50

        obj = MapObject(location_lat=location_lat)
        self.assertTrue(
            obj.is_between_latitudes(min_lat=min_lat, max_lat=max_lat))