Commit ab8907cc authored by Pavel Panchekha's avatar Pavel Panchekha
Browse files

Explain this assert

parent 9ccba65c
......@@ -71,7 +71,7 @@ class socket:
"Incorrect GET form submisson")
return io.StringIO(response.replace(newline, "\n"), newline)
assert self.method == self.URLs[url][0]
assert self.method == self.URLs[url][0], f"Expected a {self.URLs[url][0]} request but got a {self.method} request to {url}"
output = self.URLs[url][1]
if self.URLs[url][2]:
assert self.body == self.URLs[url][2], (self.body, self.URLs[url][2])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment