def test_is_filtered(self):
        ''' Tests the is_filtered function. '''
        points = [[(-2, -2), (-2, 2), (-1, 2), (-1, 0), (1, 0), (1, 2), (2, 2), (2, -2)]]
        polygon = ComplexPolygonStrategy(points)
        
        data = MockData({'location' : (-5, -1)})
        assert polygon.is_filtered(data) == True
        
        data = MockData({'location' : (-5, 1)})
        assert polygon.is_filtered(data) == True

        data = MockData({'location' : (0, 5)})
        assert polygon.is_filtered(data) == True

        data = MockData({'location' : (-1.5, 0)})
        assert polygon.is_filtered(data) == False
    
        data = MockData({'location' : (-1.5, 0.5)})
        assert polygon.is_filtered(data) == False

        data = MockData({'location' : (1.5, 0.5)})
        assert polygon.is_filtered(data) == False