Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 3ad5472e9a500c3c3a55dfbbc80e9ee85c8d25dc
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sun Nov 4 12:37:07 2012 +0100
Fix the test of the get_html_monthly_call function
---------------------------------------------------------------
fedocal/tests/test_fedocallib.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/fedocal/tests/test_fedocallib.py b/fedocal/tests/test_fedocallib.py
index b5e1ee8..fefec75 100644
--- a/fedocal/tests/test_fedocallib.py
+++ b/fedocal/tests/test_fedocallib.py
@@ -697,7 +697,13 @@ class Fedocallibtests(Modeltests):
self.assertEqual(len(obj), 0)
def test_get_html_monthly_cal(self):
- self.assertEqual('string' in output)
+ """ Test the get_html_monthly_call function. """
+ output = fedocallib.get_html_monthly_cal()
+ self.assertTrue(output.startswith('<table border="0" '\
+ 'cellpadding="0" cellspacing="0"
class="month">\n<tr><th '\
+ 'colspan="7" class="month">'))
+ self.assertTrue(output.endswith('<td
class="noday"> </td>'\
+ '<td
class="noday"> </td></tr>\n</table>\n')
if __name__ == '__main__':