Ejemplo n.º 1
0
class ImageDependencyTest(unittest.TestCase):
    def setUp(self):
        self.res = ContainerImageResolver(TEST_CONTAINER_IMAGES, TEST_IMG_DATA)

    def test_image_dependencies(self):
        self.assertTrue(self.res.get_dependencies('a'))
        self.assertTrue(self.res.get_dependencies('b'))
        self.assertTrue(self.res.get_dependencies('c'))
        self.assertTrue(self.res.get_dependencies('f'))
        self.assertFalse(self.res.get_dependencies('d'))
        self.assertFalse(self.res.get_dependencies('e'))
        self.assertFalse(self.res.get_dependencies('x'))
Ejemplo n.º 2
0
class ImageDependencyTest(unittest.TestCase):
    def setUp(self):
        self.res = ContainerImageResolver(TEST_CONTAINER_IMAGES, TEST_IMG_DATA)

    def test_iamge_dependencies(self):
        self.assertTrue(self.res.get_dependencies("a"))
        self.assertTrue(self.res.get_dependencies("b"))
        self.assertTrue(self.res.get_dependencies("c"))
        self.assertTrue(self.res.get_dependencies("f"))
        self.assertFalse(self.res.get_dependencies("d"))
        self.assertFalse(self.res.get_dependencies("e"))
        self.assertFalse(self.res.get_dependencies("x"))
class ImageDependencyTest(unittest.TestCase):
    def setUp(self):
        self.res = ContainerImageResolver(TEST_CONTAINER_IMAGES, TEST_IMG_DATA)

    def test_image_dependencies(self):
        self.assertTrue(self.res.get_dependencies('a'))
        self.assertTrue(self.res.get_dependencies('b'))
        self.assertTrue(self.res.get_dependencies('c'))
        self.assertTrue(self.res.get_dependencies('f'))
        self.assertFalse(self.res.get_dependencies('d'))
        self.assertFalse(self.res.get_dependencies('e'))
        self.assertFalse(self.res.get_dependencies('x'))
Ejemplo n.º 4
0
 def setUp(self):
     self.res = ContainerImageResolver(TEST_CONTAINER_IMAGES, TEST_IMG_DATA)
Ejemplo n.º 5
0
 def setUp(self):
     self.res = ContainerImageResolver(TEST_CONTAINER_IMAGES, TEST_IMG_DATA)