docker-py/tests
Sam Thursfield 2f3b87a470 Rewrite Client.import_image() and add less-magical versions
Rather than have one function that can do 5 things and attempts to guess
what the user wanted, it's good to have a function for each possible
method of importing an image. Error cases are handled a lot better this
way.

The unit test test_import_image_from_file() was changed to be
test_import_image_from_bytes(), because if we try to import a temporary
file in the test, the 'data' parameter of the 'fake_request' object is
an instance of a funny internal type like <_io.BufferedReader
name='/tmp/tmpc9chux'> and it's very hard to match such a thing with
`mock.assert_called_with()`.
2015-01-05 12:32:56 +00:00
..
testdata/certs utils: add kwargs_from_env 2014-10-29 10:05:49 -07:00
__init__.py Create tests module for setuptools test support 2013-07-13 01:07:04 -05:00
fake_api.py Rework Unix connection code so that 'chunked' transfers work 2015-01-05 12:05:39 +00:00
integration_test.py Improved integration tests to run on python3 and close sessions after in tearDown phase 2014-12-18 17:46:41 -08:00
test.py Rewrite Client.import_image() and add less-magical versions 2015-01-05 12:32:56 +00:00
utils_test.py Use create_host_config in start (unifying parameter processing) 2014-12-18 18:03:27 -08:00