def test_extract_dynamic_part_fail(self): assert utils.extract_dynamic_part('/stories/id') is None
def test_extract_dynamic_part(self): assert utils.extract_dynamic_part('/stories/{id}/foo') == 'id' assert utils.extract_dynamic_part('/stories/{id}') == 'id'