def test_parse_release_no_file(self): with self.assertRaises(IOError): koparse.parse_release(IMAGE_BASE, "whoops")
def test_parse_release_wrong_contents(self): images = koparse.parse_release(IMAGE_BASE, PATH_TO_WRONG_FILE) self.assertEqual(images, [])
def test_parse_release(self): images = koparse.parse_release(IMAGE_BASE, PATH_TO_TEST_RELEASE_YAML) self.assertListEqual(images, BUILT_IMAGES)