Exemplo n.º 1
0
    def test_walk_routes_accessor(self):
        walk_route_accessor.reset()
        walk_route = WalkRoute()
        walk_route.walk_to = 'Test 1'
        walk_route.walk_from = 'Test 2'
        walk_route_accessor.upset_walk_route(walk_route)

        post_walk_route = walk_route_accessor.get_walk_route(walk_route)

        self.assertEqual(post_walk_route.walk_to, walk_route.walk_to)
        self.assertEqual(post_walk_route.walk_from, walk_route.walk_from)
Exemplo n.º 2
0
def __update():
    walk_route_list = __helper.get_walk_routes()
    for walk_route in walk_route_list:
        walk_route_accessor.upset_walk_route(walk_route)
    __logger.info('Updated')