Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/test_servers.py   nova(Download)
    def test_xml_declaration(self):
        serializer = servers.ServerTemplate()
 
        output = serializer.serialize(self.body)
        has_dec = output.startswith("<?xml version='1.0' encoding='UTF-8'?>")
        self.assertTrue(has_dec)
 
    def test_show(self):
        serializer = servers.ServerTemplate()
    def test_update(self):
        serializer = servers.ServerTemplate()
 
        self.body["server"]["fault"] = {
                    "code": 500,

src/n/o/nova-gce-HEAD/nova/tests/api/openstack/compute/test_servers.py   nova-gce(Download)
    def test_xml_declaration(self):
        serializer = servers.ServerTemplate()
 
        fixture = {
            "server": {
    def test_show(self):
        serializer = servers.ServerTemplate()
 
        fixture = {
            "server": {
    def test_update(self):
        serializer = servers.ServerTemplate()
 
        fixture = {
            "server": {