Exemplo n.º 1
0
 def test_function_handling_with_newer_major(self):
     version = version_module.Version('5.2')
     function = versioning.get_function_by_version(
         routerlib.ROUTER_FUNC_DICT, 'create_lrouter', version)
     self.assertEqual(routerlib.create_explicit_routing_lrouter,
                      function)
Exemplo n.º 2
0
 def test_function_handling_missing_minor(self):
     version = version_module.Version('2.0')
     function = versioning.get_function_by_version(
         routerlib.ROUTER_FUNC_DICT, 'create_lrouter', version)
     self.assertEqual(routerlib.create_implicit_routing_lrouter,
                      function)