def test_url_parameters_add_with_query_options(self): url = "/api/v1/Cellsets('abcd')?$expand=Cells($select=Value)" url = add_url_parameters(url, **{"!sandbox": "sandbox1"}) self.assertEqual( "/api/v1/Cellsets('abcd')?$expand=Cells($select=Value)&!sandbox=sandbox1", url)
def test_url_parameters_add(self): url = "/api/v1/Cubes('cube')/tm1.Update" url = add_url_parameters(url, **{"!sandbox": "sandbox1"}) self.assertEqual( "/api/v1/Cubes('cube')/tm1.Update?!sandbox=sandbox1", url)