def test_path_discriminator(): p = Path('/foo/{x}/bar/{y}') assert p.discriminator() == 'foo/{}/bar/{}'
def test_path_discriminator(): p = Path('/foo/{x:int}/bar/{y}') assert p.discriminator() == 'foo/{int}/bar/{str}'
def test_path_discriminator(): p = Path("/foo/{x}/bar/{y}") assert p.discriminator() == "foo/{}/bar/{}"