summaryrefslogtreecommitdiff
path: root/virtinst/uri.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2015-09-22 11:34:15 -0400
committerCole Robinson <crobinso@redhat.com>2015-09-22 12:41:57 -0400
commit7f1af40262329b688670df7e3f1e141205bc7d62 (patch)
treee584c214faacbe706cf31931de7c401f47e6f5a9 /virtinst/uri.py
parent29745a9f759da17475b05a9b03c584629a31b027 (diff)
downloadvirt-manager-7f1af40262329b688670df7e3f1e141205bc7d62.tar.gz
tests: Share sanitize_xml helpers
Diffstat (limited to 'virtinst/uri.py')
-rw-r--r--virtinst/uri.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/virtinst/uri.py b/virtinst/uri.py
index 9ab101d4..e4cda2e8 100644
--- a/virtinst/uri.py
+++ b/virtinst/uri.py
@@ -23,7 +23,7 @@ import re
from .cli import VirtOptionString
-def _sanitize_xml(xml):
+def sanitize_xml_for_test_define(xml):
import difflib
orig = xml
@@ -221,10 +221,10 @@ class MagicURI(object):
origcreate = conn.createLinux
origdefine = conn.defineXML
def newcreate(xml, flags):
- xml = _sanitize_xml(xml)
+ xml = sanitize_xml_for_test_define(xml)
return origcreate(xml, flags)
def newdefine(xml):
- xml = _sanitize_xml(xml)
+ xml = sanitize_xml_for_test_define(xml)
return origdefine(xml)
conn.createLinux = newcreate
conn.defineXML = newdefine