(self)
| 678 | client.api.diff.assert_called_with(FAKE_CONTAINER_ID) |
| 679 | |
| 680 | def test_exec_run(self): |
| 681 | client = make_fake_client() |
| 682 | container = client.containers.get(FAKE_CONTAINER_ID) |
| 683 | container.exec_run("echo hello world", privileged=True, stream=True) |
| 684 | client.api.exec_create.assert_called_with( |
| 685 | FAKE_CONTAINER_ID, "echo hello world", stdout=True, stderr=True, |
| 686 | stdin=False, tty=False, privileged=True, user='', environment=None, |
| 687 | workdir=None, |
| 688 | ) |
| 689 | client.api.exec_start.assert_called_with( |
| 690 | FAKE_EXEC_ID, detach=False, tty=False, stream=True, socket=False, |
| 691 | demux=False, |
| 692 | ) |
| 693 | |
| 694 | def test_exec_run_failure(self): |
| 695 | client = make_fake_client() |
nothing calls this directly
no test coverage detected