1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-06 21:45:24 +01:00
Files
atomic/tests/unit/test_pull.py

26 lines
640 B
Python
Raw Permalink Normal View History

2016-07-21 11:13:19 -04:00
import unittest
from Atomic.syscontainers import SystemContainers
2016-07-21 11:13:19 -04:00
class TestAtomicPull(unittest.TestCase):
class Args():
def __init__(self):
self.image = "docker:fedora"
2016-07-21 11:13:19 -04:00
self.user = False
def test_pull_as_privileged_user(self):
args = self.Args()
testobj = SystemContainers()
testobj.set_args(args)
testobj.pull_image()
2016-07-21 11:13:19 -04:00
def test_pull_as_nonprivileged_user(self):
args = self.Args()
args.user = True
testobj = SystemContainers()
testobj.set_args(args)
testobj.pull_image()
2016-07-21 11:13:19 -04:00
if __name__ == '__main__':
unittest.main()