def test_random_multi_int_pattern_path(): value = "/users/{random_int:213,2135}/{random_int:0,0}" path = gen.get_path(value) match = re.compile(r"^\/users\/[0-9]+\/0$").match(path) assert match is not None
def test_complex_random_pattern_path(): value = "/users/{random_file:integer.txt}/{random_int:0,0}" path = gen.get_path(value) match = re.compile(r"^\/users\/[0-9]\/0+$").match(path) assert match is not None
def test_string_path(): value = "/users" assert gen.get_path(value) == "/users"