|
@@ -14,10 +14,6 @@ class RerunTest(unittest.TestCase):
|
14
|
14
|
|
15
|
15
|
|
16
|
16
|
def test_command_matches(self):
|
17
|
|
- """
|
18
|
|
- Tests that the command used to start a docker container exactly matches
|
19
|
|
- that returned by ./docker-rerun --dry-run.
|
20
|
|
- """
|
21
|
17
|
commands = [
|
22
|
18
|
'docker run --name=test123 -d hello-world',
|
23
|
19
|
'docker run --name=test123 --restart=always -d hello-world',
|
|
@@ -37,6 +33,3 @@ class RerunTest(unittest.TestCase):
|
37
|
33
|
self.assertEqual(output[3], command)
|
38
|
34
|
self._run(['docker', 'rm', '-f', 'test123'])
|
39
|
35
|
|
40
|
|
-
|
41
|
|
-if __name__ == '__main__':
|
42
|
|
- unittest.main()
|