changeset 1183:50ff3067234a

Simplify assert statement, thanks Thomas.
author Bilal Akhtar <bilalakhtar@ubuntu.com>
date Sat, 24 Dec 2011 21:40:52 -0500
parents bab76fc1ab45
children 3cb39729ee3d
files MoinMoin/items/_tests/test_Item.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/_tests/test_Item.py	Sat Dec 24 20:13:45 2011 -0500
+++ b/MoinMoin/items/_tests/test_Item.py	Sat Dec 24 21:40:52 2011 -0500
@@ -405,8 +405,8 @@
             # The assert statement works with both older and newer versions of Werkzeug
             # Probably not an intentional change on the werkzeug side, see issue:
             # https://github.com/mitsuhiko/werkzeug/issues/146
-            assert True in [str(result).startswith('<img src="/+diffraw/image_Item?rev'),
-                    str(result).startswith('<img src="/%2Bdiffraw/image_Item?rev')]
+            assert str(result).startswith('<img src="/+diffraw/image_Item?rev') or \
+                    str(result).startswith('<img src="/%2Bdiffraw/image_Item?rev')
         except ImportError:
             # no PIL
             pass