Skip to content

Commit 3a83269

Browse files
author
Florent
committed
Fixes test logic.
1 parent 99d50e1 commit 3a83269

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_19_attribute_converter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ def test_ava_fro_1(self):
3939
for ac in self.acs:
4040
try:
4141
ava = ac.fro(ats)
42-
break
4342
except attribute_converter.UnknownNameFormat:
4443
pass
44+
# break if we have something
45+
if ava:
46+
break
4547
print ava.keys()
4648
assert _eq(ava.keys(), ['givenName', 'displayName', 'uid',
4749
'eduPersonNickname', 'street',
@@ -207,4 +209,4 @@ def test_noop_attribute_conversion():
207209
t = TestAC()
208210
t.setup_class()
209211
t.test_mixed_attributes_1()
210-
#test_noop_attribute_conversion()
212+
#test_noop_attribute_conversion()

0 commit comments

Comments
 (0)