#NEWLINE# def test_get_canonical_path_with_pk( self ) : #NEWLINE# #INDENT# rsrc_key = DogSerializer ( ) . get_resource_key ( ) #NEWLINE# self . assertEqual ( '/dogs/1/' , DynamicRouter . get_canonical_path ( rsrc_key , pk = '1' ) )