diff options
author | Cole Robinson <crobinso@redhat.com> | 2015-09-22 11:34:15 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2015-09-22 12:41:57 -0400 |
commit | 7f1af40262329b688670df7e3f1e141205bc7d62 (patch) | |
tree | e584c214faacbe706cf31931de7c401f47e6f5a9 /virtinst/uri.py | |
parent | 29745a9f759da17475b05a9b03c584629a31b027 (diff) | |
download | virt-manager-7f1af40262329b688670df7e3f1e141205bc7d62.tar.gz |
tests: Share sanitize_xml helpers
Diffstat (limited to 'virtinst/uri.py')
-rw-r--r-- | virtinst/uri.py | 6 |
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 |