Ejemplo n.º 1
0
 def testGetQueryParamsNamesWorksCorrectly(self):
     m = api_call_router.RouterMethodMetadata("SomeMethod",
                                              http_methods=[
                                                  ("GET",
                                                   "/a/<foo>/<bar:zoo>", {})
                                              ])
     self.assertEqual(m.GetQueryParamsNames(), ["foo", "zoo"])
Ejemplo n.º 2
0
 def testGetQueryParamsNamesReturnsEmptyListOnEmptyMetadata(self):
     m = api_call_router.RouterMethodMetadata("SomeMethod")
     self.assertEqual(m.GetQueryParamsNames(), [])