Пример #1
0
 def test_extract_dynamic_part_fail(self):
     assert utils.extract_dynamic_part('/stories/id') is None
Пример #2
0
 def test_extract_dynamic_part(self):
     assert utils.extract_dynamic_part('/stories/{id}/foo') == 'id'
     assert utils.extract_dynamic_part('/stories/{id}') == 'id'