diff options
| author | William Wolf <throughnothing@gmail.com> | 2011-07-26 11:30:58 -0400 |
|---|---|---|
| committer | William Wolf <throughnothing@gmail.com> | 2011-07-26 11:30:58 -0400 |
| commit | bde063a98dad2ce75be1016b39a2c3f08759d4f6 (patch) | |
| tree | aaa99dc91047dc528a8ff9dc211098592ca1602b /nova/api | |
| parent | cdcc860cd5d513638c9d85b692f4b46b5e2832ef (diff) | |
got rid of string comparisons in serializer tests
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/versions.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/api/openstack/versions.py b/nova/api/openstack/versions.py index 03b99f342..40c187607 100644 --- a/nova/api/openstack/versions.py +++ b/nova/api/openstack/versions.py @@ -205,6 +205,7 @@ class VersionsXMLSerializer(wsgi.XMLDictSerializer): # in the base class (XMLDictSerializer), which I plan to do in # another branch def to_xml_string(self, node, has_atom=False): + print "TOXML" self._add_xmlns(node, has_atom) return node.toxml(encoding='UTF-8') @@ -273,6 +274,14 @@ class VersionsXMLSerializer(wsgi.XMLDictSerializer): class VersionsAtomSerializer(wsgi.XMLDictSerializer): + #TODO(wwolf): this is temporary until we get rid of toprettyxml + # in the base class (XMLDictSerializer), which I plan to do in + # another branch + def to_xml_string(self, node, has_atom=False): + print "TOXML" + self._add_xmlns(node, has_atom) + return node.toxml(encoding='UTF-8') + def __init__(self, metadata=None, xmlns=None): self.metadata = metadata or {} if not xmlns: |
