def testBroadDockerRepo(self): """Image exists. This should pass.""" broad_repo = 'broadinstitute/genomes-in-the-cloud:2.0.0' assert checkDockerImageExists(broad_repo)
def testBroadDockerRepoBadTag(self): """Bad tag. This should raise.""" broad_repo = 'broadinstitute/genomes-in-the-cloud:-----' with self.assertRaises(ImageNotFound): checkDockerImageExists(broad_repo)
def testOfficialUbuntuRepo(self): """Image exists. This should pass.""" ubuntu_repo = 'ubuntu:latest' assert checkDockerImageExists(ubuntu_repo)