Esempio n. 1
0
    def test_get_num_days_in_month_may(self):
        """Ensures correct output from _get_num_days_in_month.

        In this case the month is May.
        """

        this_num_days_in_month = tracking_io._get_num_days_in_month(month=5,
                                                                    year=4000)
        self.assertTrue(this_num_days_in_month == 31)
Esempio n. 2
0
    def test_get_num_days_in_month_feb2100(self):
        """Ensures correct output from _get_num_days_in_month.

        In this case the month is Feb 2100 (non-leap year).
        """

        this_num_days_in_month = tracking_io._get_num_days_in_month(month=2,
                                                                    year=2100)
        self.assertTrue(this_num_days_in_month == 28)
Esempio n. 3
0
    def test_get_num_days_in_month_april(self):
        """Ensures correct output from _get_num_days_in_month.

        In this case the month is April.
        """

        this_num_days_in_month = tracking_io._get_num_days_in_month(month=4,
                                                                    year=4000)
        self.assertTrue(this_num_days_in_month == 30)