'A ``ValueError`` is raised if repository is empty.'

def test_error_on_empty_repository(self):

    exception = self.assertRaises(ValueError, DockerImage.from_string, ':foo')
    self.assertEqual("Docker    image    names    must    have    format    'repository[:tag]'.    Found    ':foo'.", exception.message)
