From 1c15c41ce926bfed7fc02ac8bb086752a6fff3ac Mon Sep 17 00:00:00 2001 From: stroeder Date: Tue, 9 Feb 2016 19:43:35 +0000 Subject: [PATCH] Added TestEntryRecords.test_multiple_empty_lines() but disabled the actual check for now --- Tests/t_ldif.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Tests/t_ldif.py b/Tests/t_ldif.py index 92d7f8c..5c1072b 100644 --- a/Tests/t_ldif.py +++ b/Tests/t_ldif.py @@ -175,6 +175,25 @@ def test_maxentries(self): 'b2': [b'value_b2']}), ], maxentries=2) + def test_multiple_empty_lines(self): + """ + see http://sourceforge.net/p/python-ldap/feature-requests/18/ + """ + return + self.check_roundtrip(""" + # silly example + dn: uid=one,dc=tld + uid: one + + + # another silly example + dn: uid=two,dc=tld + uid: two + """, [ + ('uid=one,dc=tld', {'uid': [b'one']}), + ('uid=two,dc=tld', {'uid': [b'two']}), + ]) + if __name__ == '__main__': unittest.main()