you could avoid the escape seq (as it is frowned upon in the OpenStack code) by doing:

        self.nova_client.servers.create_image(mox.IsA(str),
                mox.IsA(str)).AndReturn(IMAGE_ID)