def test_extract_static_path(self):
     path = "/test"
     assert extract_path(path) == "/test"
 def test_extract_path_with_multiple_parameters(self):
     path = "/test/<parameter>/<string:other>/"
     assert extract_path(path) == "/test/{parameter}/{other}/"
 def test_extract_path_with_a_single_typed_parameter_with_arguments(self):
     path = "/test/<string(length=2):parameter>"
     assert extract_path(path) == "/test/{parameter}"
 def test_extract_path_with_a_single_typed_parameter(self):
     path = "/test/<string:parameter>"
     assert extract_path(path) == "/test/{parameter}"
 def test_extract_path_with_a_single_simple_parameter(self):
     path = "/test/<parameter>"
     assert extract_path(path) == "/test/{parameter}"
Exemplo n.º 6
0
 def test_extract_static_path(self):
     path = '/test'
     assert extract_path(path) == '/test'