1. Andriy Kornatskyy
  2. wheezy.routing

Source

wheezy.routing / src / wheezy / routing / tests / test_router.py

Diff from to

File src/wheezy/routing/tests/test_router.py

  • Ignore whitespace
         expect(mock_route.path)
         mock_build_route = self.m.replace(builders.build_route)
         expect(
-            mock_build_route('abc', True, kw, self.r.route_builders)
+            mock_build_route('abc', True, kw, 'n', self.r.route_builders)
         ).result(mock_route)
         self.m.replay()
 
         expect(mock_route.path)
         mock_build_route = self.m.replace(builders.build_route)
         expect(
-            mock_build_route('abc', False, kw, self.r.route_builders)
+            mock_build_route('abc', False, kw, None, self.r.route_builders)
         ).result(mock_route)
         self.m.replay()
 
         expect(
             mock_build_route(
                 '', True,
-                {},
+                None, 'x',
                 self.r.route_builders
             )
         ).result(mock_route)
 
         self.assertEquals('h', handler)
         self.assertEquals(kw, kwargs)
-        assert kw is kwargs
+        assert kw == kwargs
 
     def test_kwargs_inner(self):
         """ there is a match is inner, kwargs is None
             mock_build_route(
                 'abc',
                 True,
-                {},
+                None,
+                'n',
                 self.r.route_builders)
         ).result(mock_route)
         expect(mock_route.path({'a': 1})).result('abc')