def test_match_path_with_slash(self): def dummy_func(num: int): return num route = Route('/hoge/{num}', 'GET', 'hoge', dummy_func) self.assertTrue(route._match_path('hoge/1/'))