Skip to content

Commit

Permalink
Py3K
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcouper committed Oct 12, 2016
1 parent d482121 commit c6e2790
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions abe/unittest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import os
import urlparse
try:
from urlparse import parse_qs
except ImportError:
from urllib.parse import parse_qs

from .mocks import AbeMock
from .utils import normalize, subkeys
Expand Down Expand Up @@ -127,7 +130,7 @@ def assert_headers_contain(self, response_data, spec_data):
)

def assert_query_params_equal(self, request_data, spec_data):
qs = urlparse.parse_qs(request_data)
qs = parse_qs(request_data)
for k, expected_value in spec_data.items():
try:
actual_value = qs[k]
Expand Down

0 comments on commit c6e2790

Please sign in to comment.