1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
import unittest
from varlink import VarlinkError
from podman_testcase import PodmanTestCase
MethodNotImplemented = 'org.varlink.service.MethodNotImplemented'
class TestContainersAPI(PodmanTestCase):
def test_ListContainers(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.ListContainers()
def test_CreateContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.CreateContainer()
def test_InspecContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.InspectContainer()
def test_ListContainerProcesses(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.ListContainerProcesses()
def test_GetContainerLogs(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.GetContainerLogs()
def test_ListContainerChanges(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.ListContainerChanges()
def test_ExportContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.ExportContainer()
def test_GetContainerStats(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.GetContainerStats()
def test_ResizeContainerTty(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.ResizeContainerTty()
def test_StartContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.StartContainer()
def test_RestartContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.RestartContainer()
def test_KillContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.KillContainer()
def test_UpdateContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.UpdateContainer()
def test_RenameContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.RenameContainer()
def test_PauseContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.PauseContainer()
def test_UnpauseContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.UnpauseContainer()
def test_AttachToContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.AttachToContainer()
def test_WaitContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.WaitContainer()
def test_RemoveContainer(self):
with self.assertRaisesRegex(VarlinkError, MethodNotImplemented):
self.podman.RemoveContainer()
if __name__ == '__main__':
unittest.main()
|