python-swiftclient/swiftclient
Tim Burke 9fed7ed5e1 Miscellaneous (mostly test) cleanup
* Always use testtools.TestCase, since we're relying on testtools
 * Always use mock (as opposed to unittest.mock) since we're relying on
   mock
 * Add note about when a missing logging handler was added
 * Stop %-formatting the giant usage string that doesn't actually need
   any formatting
 * Prefer assertIs, assertIn, assertIsInstance over assertTrue
 * Use else-self.fail instead of sentinel values
 * Check resp.get('error') is None before checking resp['success'] is
   True, so test failures actually tell you something useful
 * Tighten some isinstance assertions
 * Import MockHttpTest from correct location
 * Only populate clean_os_environ once
 * Use setUp for setup, not __init__
 * Replace assertIn(key, dict) and assertEqual(foo, dict[key]) with
   assertEqual(foo, dict.get(key)) when key is a literal and foo is not
   None
 * Use mock.patch.object instead of manually patching for tests
 * Use six.binary_type instead of type(''.encode('utf-8'))
 * Stop shadowing builtin bytes
 * Reclaim some margin
 * Stop checking the return-type of encode_utf8; we already know it's
   bytes

Change-Id: I2138ea553378ce88810b7353147c8645a8f8c90e
2015-10-07 22:33:42 -07:00
..
__init__.py Use Emacs-friendly coding line. 2014-05-26 14:35:03 +02:00
client.py Miscellaneous (mostly test) cleanup 2015-10-07 22:33:42 -07:00
command_helpers.py Add per policy container count to account stat output 2014-09-19 17:07:48 -07:00
exceptions.py make ClientException.http_status default to None rather than 0 2015-09-04 16:24:54 -07:00
multithreading.py Python 3: Replacing unicode with six.text_type for py3 compatibility 2015-06-28 07:40:26 +05:30
service.py Log and report trace on service operation fails 2015-08-31 22:03:26 +01:00
shell.py Miscellaneous (mostly test) cleanup 2015-10-07 22:33:42 -07:00
utils.py Miscellaneous (mostly test) cleanup 2015-10-07 22:33:42 -07:00
version.py Remove extraneous vim configuration comments 2014-02-13 17:44:29 +08:00