def test_can_serialize_specific_urls_that_have_a_path_without_converter( self): output_dict = json.loads(get_urls_as_json()) assert output_dict[ 'articles_with_path_without_converter'] == '/articles/<slug>/'
def test_can_serialize_specific_urls_that_have_a_regex_path(self): output_dict = json.loads(get_urls_as_json()) assert output_dict['articles_with_re_path'] == '/articles/<year>/'
def test_can_serialize_specific_urls_that_have_multiple_path_expressions( self): output_dict = json.loads(get_urls_as_json()) assert output_dict[ 'articles_with_paths'] == '/articles/<year>/<month>/'
def test_can_serialize_specific_urls_that_have_been_included(self): output_dict = json.loads(get_urls_as_json()) assert output_dict[ 'included_test_with_args'] == '/included/<pk1>/test/<>/foo/<>/bar/'
def test_can_serialize_specific_urls_that_have_an_optional_kwarg(self): output_dict = json.loads(get_urls_as_json()) assert output_dict['dummy_with_optional_kwarg'] == '/dummy/<>/'
def test_can_serialize_specific_urls_that_have_optional_characters(self): output_dict = json.loads(get_urls_as_json()) assert output_dict[ 'dummy_with_optional_character'] == '/dummy/<>/foo/bar/'
def test_can_serialize_specific_urls_that_have_named_arguments(self): output_dict = json.loads(get_urls_as_json()) assert output_dict[ 'dummy_with_kwargs'] == '/dummy/<pk1>/foo/<pk2>/bar/'
def test_can_serialize_specific_urls_that_do_not_have_arguments(self): output_dict = json.loads(get_urls_as_json()) assert output_dict['dummy'] == '/dummy/'