Sorry, forgot to add the code:<div><br></div><div><b>This is my method (this worked with devstack):</b></div><div><div>    def get_diagnostics(self, instance):</div><div>        dom = self._lookup_by_name(instance['name'])</div>
<div>        return diagnostics.get_diagnostics(dom)</div></div><div><br></div><div><br></div><div><b>and this the test method</b>:</div><div><br></div><div><div> def test_get_diagnostics(self):</div><div>        instance_ref, network_info = self._get_running_instance()</div>
<div>        self.connection.get_diagnostics(instance_ref['name'])</div></div><div><br><div class="gmail_quote">On Mon, Jun 25, 2012 at 3:41 PM, Leander Bessa Beernaert <span dir="ltr"><<a href="mailto:leanderbb@gmail.com" target="_blank">leanderbb@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><br></div><div>I'm working on the diagnostics method for libvirt. I've successfully managed to test it while running it manually and with devstack. However, the test case in test_virt_drivers.py fails since it supplies a different data type to the method.</div>

<div><br></div><div>Could it be possible that there's a certain mismatch between the two or that this particular method accepts multiple sorts of data-types?</div><div><br></div><div>Regards,</div><div>Leander</div>
</blockquote></div><br></div>