git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
README updated
[unfold.git]
/
unfold
/
tests.py
diff --git
a/unfold/tests.py
b/unfold/tests.py
index
4ef3cd1
..
b8b1c91
100644
(file)
--- a/
unfold/tests.py
+++ b/
unfold/tests.py
@@
-1,3
+1,5
@@
+from __future__ import print_function
+
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
@@
-14,8
+16,8
@@
class PluginTest(TestCase):
"""
Tests that 1 + 1 always equals 2.
"""
"""
Tests that 1 + 1 always equals 2.
"""
- print
'test_basic is broken'
+ print
('test_basic is broken')
return True
sl = SimpleList (visible=True)
return True
sl = SimpleList (visible=True)
- print
'rendering', sl.render(
)
+ print
('rendering', sl.render()
)
self.assertEqual(1 + 1, 2)
self.assertEqual(1 + 1, 2)