Exemplo n.º 1
0
    def test_extract_vmware_parameters_treats_optional_params_as_none(self):
        (system_id, host, username, password, vm_name, uuid, port, protocol,
         context) = self.make_parameters(has_optional=False)

        self.assertItemsEqual(
            (host, username, password, vm_name, uuid, port, protocol),
            extract_vmware_parameters(context))
Exemplo n.º 2
0
    def test_extract_vmware_parameters_extracts_parameters(self):
        (system_id, host, username, password, vm_name, uuid, port, protocol,
         context) = self.make_parameters()

        self.assertItemsEqual(
            (host, username, password, vm_name, uuid, None, None),
            extract_vmware_parameters(context))