Revision a7d524e7
b/test/py/ganeti.backend_unittest.py | ||
---|---|---|
22 | 22 |
"""Script for testing ganeti.backend""" |
23 | 23 |
|
24 | 24 |
import os |
25 |
import sys |
|
26 | 25 |
import shutil |
27 | 26 |
import tempfile |
28 | 27 |
import unittest |
... | ... | |
32 | 31 |
from ganeti import constants |
33 | 32 |
from ganeti import backend |
34 | 33 |
from ganeti import netutils |
35 |
from ganeti import errors |
|
36 |
from ganeti import serializer |
|
37 | 34 |
from ganeti import hypervisor |
38 | 35 |
|
39 | 36 |
import testutils |
40 |
import mocks |
|
41 | 37 |
|
42 | 38 |
|
43 | 39 |
class TestX509Certificates(unittest.TestCase): |
... | ... | |
615 | 611 |
hvparams = {constants.HV_XEN_CMD: constants.XEN_CMD_XL} |
616 | 612 |
hv_specs = [(hvname, hvparams)] |
617 | 613 |
|
618 |
result = backend._GetHvInfoAll(hv_specs, self._GetHypervisor)
|
|
614 |
backend._GetHvInfoAll(hv_specs, self._GetHypervisor) |
|
619 | 615 |
self._test_hv.GetNodeInfo.assert_called_with(hvparams=hvparams) |
620 | 616 |
|
621 | 617 |
|
Also available in: Unified diff