Python calendar.HTMLCalendar() Examples
The following are 16
code examples of calendar.HTMLCalendar().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
calendar
, or try the search function
.
Example #1
Source File: test_calendar.py From ironpython2 with Apache License 2.0 | 5 votes |
def test_output_htmlcalendar(self): self.assertEqual( calendar.HTMLCalendar().formatyearpage(2004).strip(), result_2004_html.strip() )
Example #2
Source File: test_calendar.py From BinderFilter with MIT License | 5 votes |
def test_output_htmlcalendar(self): self.assertEqual( calendar.HTMLCalendar().formatyearpage(2004).strip(), result_2004_html.strip() )
Example #3
Source File: test_calendar.py From oss-ftp with MIT License | 5 votes |
def test_output_htmlcalendar(self): self.assertEqual( calendar.HTMLCalendar().formatyearpage(2004).strip(), result_2004_html.strip() )
Example #4
Source File: test_calendar.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def check_htmlcalendar_encoding(self, req, res): cal = calendar.HTMLCalendar() self.assertEqual( cal.formatyearpage(2004, encoding=req), (result_2004_html % {'e': res}).encode(res) )
Example #5
Source File: test_calendar.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def test_formatmonthname_with_year(self): self.assertEqual( calendar.HTMLCalendar().formatmonthname(2004, 1, withyear=True), '<tr><th colspan="7" class="month">January 2004</th></tr>' )
Example #6
Source File: test_calendar.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def test_formatmonthname_without_year(self): self.assertEqual( calendar.HTMLCalendar().formatmonthname(2004, 1, withyear=False), '<tr><th colspan="7" class="month">January</th></tr>' )
Example #7
Source File: test_calendar.py From ironpython3 with Apache License 2.0 | 5 votes |
def check_htmlcalendar_encoding(self, req, res): cal = calendar.HTMLCalendar() self.assertEqual( cal.formatyearpage(2004, encoding=req), (result_2004_html % {'e': res}).encode(res) )
Example #8
Source File: test_calendar.py From ironpython3 with Apache License 2.0 | 5 votes |
def test_formatmonthname_with_year(self): self.assertEqual( calendar.HTMLCalendar().formatmonthname(2004, 1, withyear=True), '<tr><th colspan="7" class="month">January 2004</th></tr>' )
Example #9
Source File: test_calendar.py From ironpython3 with Apache License 2.0 | 5 votes |
def test_formatmonthname_without_year(self): self.assertEqual( calendar.HTMLCalendar().formatmonthname(2004, 1, withyear=False), '<tr><th colspan="7" class="month">January</th></tr>' )
Example #10
Source File: test_calendar.py From gcblue with BSD 3-Clause "New" or "Revised" License | 5 votes |
def test_output_htmlcalendar(self): self.assertEqual( calendar.HTMLCalendar().formatyearpage(2004).strip(), result_2004_html.strip() )
Example #11
Source File: test_calendar.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def check_htmlcalendar_encoding(self, req, res): cal = calendar.HTMLCalendar() self.assertEqual( cal.formatyearpage(2004, encoding=req), (result_2004_html % {'e': res}).encode(res) )
Example #12
Source File: test_calendar.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def test_formatmonthname_with_year(self): self.assertEqual( calendar.HTMLCalendar().formatmonthname(2004, 1, withyear=True), '<tr><th colspan="7" class="month">January 2004</th></tr>' )
Example #13
Source File: test_calendar.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def test_formatmonthname_without_year(self): self.assertEqual( calendar.HTMLCalendar().formatmonthname(2004, 1, withyear=False), '<tr><th colspan="7" class="month">January</th></tr>' )
Example #14
Source File: test_calendar.py From medicare-demo with Apache License 2.0 | 5 votes |
def test_output_htmlcalendar(self): self.assertEqual( calendar.HTMLCalendar().formatyearpage(2004).strip(), result_2004_html.strip() )
Example #15
Source File: test_calendar.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def test_output_htmlcalendar(self): self.assertEqual( calendar.HTMLCalendar().formatyearpage(2004).strip(), result_2004_html.strip() )
Example #16
Source File: test_calendar.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def test_output_htmlcalendar(self): self.assertEqual( calendar.HTMLCalendar().formatyearpage(2004).strip(), result_2004_html.strip() )