def test_get_image_entrypoint(self): '''get_image_entrypoint works''' result = uut.get_image_entrypoint('scuba/entrypoint-test') self.assertEqual(1, len(result)) assert_str_equalish('/entrypoint.sh', result[0])
def test_get_image_entrypoint__none(self): '''get_image_entrypoint works for image with no entrypoint''' result = uut.get_image_entrypoint('debian') self.assertEqual(None, result)
def test_get_image_entrypoint(self): '''get_image_entrypoint works''' result = uut.get_image_entrypoint('jreinhart/echo') self.assertEqual(1, len(result)) assert_str_equalish('echo', result[0])