def test_hibernate_vpsa(self): httpretty.register_uri(httpretty.POST, '%s/api/vpsas/1234/hibernate.json' % rest_service_url, body='''{ "response": "VPSA being put into hibernating state." }''') response = VpsaEndpoint.hibernate(self.c, 1234) response.should.contain('being put into hibernating state')
def test_hibernate_vpsa(self): httpretty.register_uri( httpretty.POST, "%s/api/vpsas/1234/hibernate.json" % rest_service_url, body="""{ "response": "VPSA being put into hibernating state." }""", ) response = VpsaEndpoint.hibernate(self.c, 1234) response.should.contain("being put into hibernating state")