def test_post_host_1_guest(self):

        params = {}
        params['domain_name'] = 'foobar'
        params['m_name'] = 'foobar'
        params['icon_filename'] = ''
        params['m_hypervisor'] = '1'
        params['note_title'] = 'title'
        params['note_value'] = 'value'
        params['tags'] = ''
        params['nic_type'] = 'phydev'
        params['phydev'] = 'xenbr0'
        params['virnet'] = 'default'
        params['xen_disk_size'] = '4096'
        params['xen_extra'] = ''
        params['xen_initrd'] = '/var/ftp/images/xen/initrd.img'
        params['xen_kernel'] = '/var/ftp/images/xen/vmlinuz'
        params['xen_mac'] = '00:16:3e:4e:4d:e2'
        params['xen_mem_size'] = '256'
        params['xen_graphics_port'] = '5910'
        upload_files=None

        r = self.app.post("%s/host/1/guest.part" % self.prefix,params=params,headers=self.headers,upload_files=upload_files)
        assert_equal(r.status, 200)
        r.mustcontain('other_url')
dataset/ETHPy150Open karesansui/karesansui/karesansui/tests/restapi/__init__.py/TestRestAPI.test_post_host_1_guest/original