Example #1
0
 def test_createvm_with_basefolder(self):
     vm_info = createvm(name=self.vm_name, basefolder='test')
     testify.assert_equal(vm_info['name'], self.vm_name, 'name mismatch')
     testify.assert_equal(bool(vm_info['file_path']), True,
             'no file_path set')
     vm_uuid = uuid.UUID('{%s}' % vm_info['uuid'])
     testify.assert_equal(type(vm_uuid), type(uuid.uuid4()), 'no uuid set')
Example #2
0
 def create_vm(self):
     self.vm_info = createvm(name='taco')
Example #3
0
 def test_createvm_with_uuid(self):
     vm_info = createvm(name=self.vm_name, uuid=self.vm_uuid)
     testify.assert_equal(vm_info['name'], self.vm_name, 'name mismatch')
     testify.assert_equal(vm_info['uuid'], self.vm_uuid, 'uuid mismatch')
     vm_uuid = uuid.UUID('{%s}' % vm_info['uuid'])
     testify.assert_equal(type(vm_uuid), type(uuid.uuid4()), 'no uuid set')