LGTM, thanks.

On Wed, Mar 26, 2014 at 2:25 PM, Hrvoje Ribicic <[email protected]> wrote:

> This patch makes a mock use a dictionary instead of an object, allowing
> alias finding to work on it.
>
> Signed-off-by: Hrvoje Ribicic <[email protected]>
> ---
>  test/py/ganeti.rapi.rlib2_unittest.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/py/ganeti.rapi.rlib2_unittest.py b/test/py/
> ganeti.rapi.rlib2_unittest.py
> index 7daa726..7bb7a6e 100755
> --- a/test/py/ganeti.rapi.rlib2_unittest.py
> +++ b/test/py/ganeti.rapi.rlib2_unittest.py
> @@ -1746,7 +1746,7 @@ class TestClusterInfo(unittest.TestCase):
>
>      def QueryClusterInfo(self):
>        assert self.cluster_info is None
> -      self.cluster_info = object()
> +      self.cluster_info = {}
>        return self.cluster_info
>
>    def test(self):
> --
> 1.9.1.423.g4596e3a
>
>


-- 
Thomas Thrainer | Software Engineer | [email protected] |

Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores

Reply via email to