-
-
rbtools/api/tests.py (Diff revision 1) assertIsInstance, assertIs, assertIsNone, assertIsNotNone, and maybe some others are only in Python 2.7. This file needs to be able to work without these functions.
tests for Python API client
Review Request #3283 — Created Aug. 16, 2012 and submitted
Provides a number of tests for the Factory, Resources, the Sync Transport, and HttpRequest for the new API. Acknowledgement: Alexander Solovets (mbait) provided the HttpRequest tests.
All tests pass.
Description | From | Last Updated |
---|---|---|
assertIsInstance, assertIs, assertIsNone, assertIsNotNone, and maybe some others are only in Python 2.7. This file needs to be able to … |
|
SM
Change Summary:
Fixed the python version issues Christian brought up. Patch now off of the api branch.
Description: |
|
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Branch: |
|
||||||||||||||||||
Diff: |
Revision 2 (+350) |
-
I should have mentioned this before, but I didn't really notice it until I ran the tests. Tests need to have a one-line """docstring""" that describes the test, like RB's tests. This makes it easier to see what exactly is being tested when the tests run.