summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-02-19 19:39:55 +0000
committerDaniel P. Berrange <berrange@redhat.com>2013-02-19 19:56:26 +0000
commita7f72a59ba3214f19c7bd66a7ef465ecc22794dd (patch)
treee6e5ede5600702418b60d3dbc9ae410d8bb8fb3b /nova/exception.py
parenta89daffeb99956ab38c0b6c1144803c5b3e851f9 (diff)
downloadnova-a7f72a59ba3214f19c7bd66a7ef465ecc22794dd.tar.gz
nova-a7f72a59ba3214f19c7bd66a7ef465ecc22794dd.tar.xz
nova-a7f72a59ba3214f19c7bd66a7ef465ecc22794dd.zip
Fix XMLMatcher error reporting
The nova.tests.matchers.XMLMismatch class implements the get_details() method returning a dictionary with the expect and actual XML output. It is returning a string values, but the testtools code requires that the dictionary values are instances of the testtools.content.Content object. To quote the 'get_details' docs on testtools.matchers.Mismatch :return: a dict mapping names to Content objects. name is a string to name the detail, and the Content object is the detail to add to the result. For more information see the API to which items from this dict are passed testtools.TestCase.addDetail. Related bug #1130146 Change-Id: I75ec07d8b34b04c7b8009229fda49b344ed13bec Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions