summaryrefslogtreecommitdiff
path: root/tests/unit/api_container_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/api_container_test.py')
-rw-r--r--tests/unit/api_container_test.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/api_container_test.py b/tests/unit/api_container_test.py
index c605da3..c4e2250 100644
--- a/tests/unit/api_container_test.py
+++ b/tests/unit/api_container_test.py
@@ -1528,10 +1528,21 @@ class ContainerTest(BaseAPIClientTest):
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/' + fake_api.FAKE_CONTAINER_ID + '/stats',
+ stream=True,
timeout=60,
params={'stream': True}
)
+ def test_container_stats_without_streaming(self):
+ self.client.stats(fake_api.FAKE_CONTAINER_ID, stream=False)
+
+ fake_request.assert_called_with(
+ 'GET',
+ url_prefix + 'containers/' + fake_api.FAKE_CONTAINER_ID + '/stats',
+ timeout=60,
+ params={'stream': False}
+ )
+
def test_container_stats_with_one_shot(self):
self.client.stats(
fake_api.FAKE_CONTAINER_ID, stream=False, one_shot=True)