From: Vinod Chandru Date: Thu, 10 Jan 2013 04:10:54 +0000 (-0800) Subject: Fixing test to ensure it passes with python 3. X-Git-Tag: v1.1.0^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbc366c1a551c05d8c1ebfdf92608b7062a22622;p=services%2Fpython-requests.git Fixing test to ensure it passes with python 3. --- diff --git a/test_requests.py b/test_requests.py index fb48323..18a51bb 100644 --- a/test_requests.py +++ b/test_requests.py @@ -262,7 +262,7 @@ class RequestsTestCase(unittest.TestCase): 'file2': ('test_requests', open(__file__, 'rb'), 'text/py-content-type')}) self.assertEqual(r.status_code, 200) - self.assertTrue("text/py-content-type" in r.request.body) + self.assertTrue(b"text/py-content-type" in r.request.body) if __name__ == '__main__':