Hi,

attaching patch for https://fedorahosted.org/freeipa/ticket/6189


Lenka

From 9e0591f6099c587218aa8155113d3e7bd85fe9f4 Mon Sep 17 00:00:00 2001
From: Lenka Doudova <ldoud...@redhat.com>
Date: Mon, 15 Aug 2016 14:24:11 +0200
Subject: [PATCH] Tests: test_ipalib/test_output fails due to change of Output
 behaviour

https://fedorahosted.org/freeipa/ticket/6189
---
 ipatests/test_ipalib/test_output.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ipatests/test_ipalib/test_output.py b/ipatests/test_ipalib/test_output.py
index 5741637f9734e33be1e1a7e1f44099c53c8789c8..ed734ffd4b9ad99657ada0d3bcfc35db6c4b8c73 100644
--- a/ipatests/test_ipalib/test_output.py
+++ b/ipatests/test_ipalib/test_output.py
@@ -51,16 +51,16 @@ class test_Output(ClassChecker):
         Test the `ipalib.output.Output.__repr__` method.
         """
         o = self.cls('aye')
-        assert repr(o) == "Output('aye', None, None)"
+        assert repr(o) == "Output('aye')"
         o = self.cls('aye', type=int, doc='An A, aye?')
-        assert repr(o) == "Output('aye', %r, 'An A, aye?')" % int
+        assert repr(o) == "Output('aye', type=[%r], doc='An A, aye?')" % int
 
         class Entry(self.cls):
             pass
         o = Entry('aye')
-        assert repr(o) == "Entry('aye', None, None)"
+        assert repr(o) == "Entry('aye')"
         o = Entry('aye', type=int, doc='An A, aye?')
-        assert repr(o) == "Entry('aye', %r, 'An A, aye?')" % int
+        assert repr(o) == "Entry('aye', type=[%r], doc='An A, aye?')" % int
 
 
 class test_ListOfEntries(ClassChecker):
-- 
2.7.4

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to