aboutsummaryrefslogtreecommitdiff
path: root/tests/test__helpers.py
AgeCommit message (Collapse)Author
2016-08-17Correct query loss when using parse_qsl to dictDanny Hermes
2016-08-15Merge pull request #627 from jonparrott/no-authorNathaniel Manista
Remove __author__ lines and add contributors.md.
2016-08-15Remove __author__ lines, add contributors.mdJon Wayne Parrott
Resolves #626
2016-08-15Update helper b64 encode/decode tests (#631)Pat Ferate
2016-08-11Drop unittest2 dependencyDanny Hermes
No longer needed since Python 2.6 support has been dropped.
2016-08-04Merge util.py and _helpers.pyPat Ferate
A new file, `_helpers.py`, was created without realizing that `utils.py` existed for the same purpose. Moving all to `_helpers.py`.
2016-07-27Update imports to only Packages or ModulesPat Ferate
Also cleaned up some nested attribute access.
2016-07-06Use context manager for assertRaises (#537)Pat Ferate
* Use context manager for assertRaises, fixes #536. * Update usage of unittest to unittest2. * Remove unneeded `if __name__ == '__main__':` clauses in test files.
2015-09-21Adding no-cover pragmas to unittest.main().Danny Hermes
This is so we get 100% line coverage in our tests. Also adding unittest.main() lines to the files missing it: test__helpers.py test__pycrypto_crypt.py test_crypt.py test_devshell.py test_gce.py test_keyring_storage.py test_service_account.py test_util.py
2015-08-21Making tests/ files pass PEP8.Danny Hermes
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
2015-08-21Raw pep8ify changes.Danny Hermes
Simply ran pep8ify -w oauth2client/ pep8ify -w tests/
2015-08-17Adding _from_bytes helpers as a foil for _to_bytes.Danny Hermes
2015-08-14Unifying all conversions to bytes.Danny Hermes
Also making sure the _urlsafe_b64encode returns bytes and updating dependent code with the change in return type.
2015-07-13Factoring out conditional code from `crypt.py`.Danny Hermes
Until now, code that depended on PyCrypto or OpenSSL was defined conditionally (e.g. indented) in `crypt.py`. Rather than grouping all these together, we factor out the library specific behavior into standalone modules (but make the modules private / protected). In addition, added a `_helpers.py` module with common behavior that was previously defined in multiple places. Finally, beefed up some test cases so that the three newly added modules had 100% test coverage. Towards #212.