diff options
author | rsiddharth <rsd@gnu.org> | 2019-05-26 09:45:56 -0400 |
---|---|---|
committer | rsiddharth <rsd@gnu.org> | 2019-05-26 09:45:56 -0400 |
commit | 8bb24f30c0aba9b72567dd000fff6004b67abe43 (patch) | |
tree | 3bb801a50903fcece966f73aab344234afd3d855 /tests | |
parent | 9f909aea468313e74716c5de37fd7cbd00de96fa (diff) |
lps_gen.py: Update LPiCal.
* lps_gen.py (LPiCal.__init__): Use format function for formatted
string.
* tests/test_lps_gen.py (TestLPiCal.test_init): New test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_lps_gen.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py index f907b6e..41f6803 100644 --- a/tests/test_lps_gen.py +++ b/tests/test_lps_gen.py @@ -135,6 +135,17 @@ class TestLPiCal(object): self.lp_ical = LPiCal(self.lps_dict, '2019') + def test_init(self): + """Testing LPiCal.__init__. + """ + lp_ical = LPiCal(self.lps_dict, '2019') + + assert_equal(lp_ical.lp_year, '2019') + assert_equal(lp_ical.cal.get('x-wr-calname'), + 'LibrePlanet 2019') + assert_equal(lp_ical.ucounter, 0) + + def test_gen_uid(self): """Testing LPiCal.gen_uid. """ |