aboutsummaryrefslogtreecommitdiff
path: root/tests/test__helpers.py
diff options
context:
space:
mode:
authorDanny Hermes <daniel.j.hermes@gmail.com>2015-08-20 14:05:56 -0700
committerDanny Hermes <daniel.j.hermes@gmail.com>2015-08-21 08:23:07 -0700
commit28445b98bb81c60189dc73119904b0125ca73cd3 (patch)
tree2ee4eba0fbb8cfaaa2d2ec468194f9f16683a682 /tests/test__helpers.py
parent22981ac17bcba14f8743f4b852fbe0eb5f1f1c8d (diff)
downloadoauth2client-28445b98bb81c60189dc73119904b0125ca73cd3.tar.gz
Making tests/ files pass PEP8.
This is all errors except E402: module level import not at top of file. This is because in most (all?) files the __author__ global comes before imports begin. Ref: http://stackoverflow.com/a/24859703/1068170
Diffstat (limited to 'tests/test__helpers.py')
-rw-r--r--tests/test__helpers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test__helpers.py b/tests/test__helpers.py
index eb75d35..0a7fecf 100644
--- a/tests/test__helpers.py
+++ b/tests/test__helpers.py
@@ -43,12 +43,12 @@ class Test__json_encode(unittest.TestCase):
# is non-deterministic.
data = {u'foo': 10}
result = _json_encode(data)
- self.assertEqual(result, """{"foo":10}""")
+ self.assertEqual(result, '{"foo":10}')
def test_list_input(self):
data = [42, 1337]
result = _json_encode(data)
- self.assertEqual(result, """[42,1337]""")
+ self.assertEqual(result, '[42,1337]')
class Test__to_bytes(unittest.TestCase):
@@ -114,4 +114,4 @@ class Test__urlsafe_b64decode(unittest.TestCase):
import binascii
bad_string = b'+'
self.assertRaises((TypeError, binascii.Error),
- _urlsafe_b64decode, bad_string)
+ _urlsafe_b64decode, bad_string)