Exemple #1
0
    def test_match_method(self):
        def dummy_func(num: int):
            return num

        route = Route('/hoge/{num}', 'GET', 'hoge', dummy_func)
        self.assertTrue(route._match_method('GET'))
Exemple #2
0
 def test_match_method(self):
     def dummy_func(num: int):
         return num
     route = Route('/hoge/{num}', 'GET', 'hoge', dummy_func)
     self.assertTrue(route._match_method('GET'))