~ubuntu-branches/ubuntu/quantal/virtinst/quantal-proposed

« back to all changes in this revision

Viewing changes to tests/interface.py

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Léonard
  • Date: 2011-01-29 21:41:21 UTC
  • mto: (1.6.3 sid)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20110129214121-pjuxf2xz08l5zqew
Tags: upstream-0.500.5
Import upstream version 0.500.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import virtinst.Interface
22
22
from virtinst.Interface import (Interface, InterfaceProtocol,
23
23
                                InterfaceProtocolIPAddress)
24
 
import tests
 
24
import utils
25
25
 
26
 
conn = tests.open_testdriver()
 
26
conn = utils.open_testdriver()
27
27
datadir = "tests/interface-xml"
28
28
 
29
29
vlan_iface = conn.interfaceLookupByName("vlaneth1")
66
66
 
67
67
        if compare:
68
68
            filename = os.path.join(datadir, obj.name + ".xml")
69
 
            tests.diff_compare(xml, filename)
 
69
            utils.diff_compare(xml, filename)
70
70
 
71
71
        iface = obj.install()
72
72
 
217
217
 
218
218
if __name__ == "__main__":
219
219
    unittest.main()
220