<s> import unittest <EOL> from unittest import mock <EOL> from thorium import Route , RouteManager <EOL> class TestRouteManager ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . route_manager = RouteManager ( ) <EOL> def test_init ( self ) : <EOL> self . assertFalse ( self . route_manager . _routes , '<STR_LIT>' ) <EOL> def test_add_route ( self ) : <EOL> route = mock . MagicMock ( spec = Route ) <EOL> self . route_manager . add_route ( route ) <EOL> self . assertIn ( route , self . route_manager . _routes , <EOL> '<STR_LIT>' ) <EOL> def test_get_all_routes ( self ) : <EOL> route1 = mock . MagicMock ( spec = Route ) <EOL> route2 = mock . MagicMock ( spec = Route ) <EOL> self . route_manager . add_route ( route1 ) <EOL> self . route_manager . add_route ( route2 ) <EOL> routes = self . route_manager . get_all_routes ( ) <EOL> self . assertIn ( route1 , routes ) <EOL> self . assertIn ( route2 , routes ) </s>
