quote url in testing module using fuctions borrow from requests