Ejemplo n.º 1
0
    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')
Ejemplo n.º 2
0
    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")