(self)
| 40 | class NetworkTest(unittest.TestCase): |
| 41 | |
| 42 | def test_connect(self): |
| 43 | client = make_fake_client() |
| 44 | network = client.networks.get(FAKE_NETWORK_ID) |
| 45 | network.connect(FAKE_CONTAINER_ID) |
| 46 | client.api.connect_container_to_network.assert_called_once_with( |
| 47 | FAKE_CONTAINER_ID, |
| 48 | FAKE_NETWORK_ID |
| 49 | ) |
| 50 | |
| 51 | def test_disconnect(self): |
| 52 | client = make_fake_client() |
nothing calls this directly
no test coverage detected