

def test_container_execute(self):
    output = self.mgr.execute(CONTAINER1['id'], 'ls')
    expect = [('PUT', ('/v1/containers/%s/execute?command=ls' % CONTAINER1['id']), {
        'Content-Length': '0',
    }, None)]
    self.assertEqual(expect, self.api.calls)
    self.assertEqual('/home', output)

dataset/ETHPy150Open openstack/python-magnumclient/magnumclient/tests/v1/test_containers.py ContainerManagerTest.test_container_execute/original