

def test_strip_prefix(self, mock_client):
    self.assertEqual(strip_prefix('quay.io/boris/riotsugar'), 'boris/riotsugar')
    self.assertEqual(strip_prefix('127.0.0.1:5000/boris/galaxians'), 'boris/galaxians')
    self.assertEqual(strip_prefix('boris/jacksonhead'), 'boris/jacksonhead')
    self.assertEqual(strip_prefix(':8888/boris/pink'), 'boris/pink')

dataset/ETHPy150Open deis/deis/controller/registry/tests.py DockerClientTest.test_strip_prefix/original