tests.date_tests module#

Tests for the date module.

class tests.date_tests.TestDate(*args, **kwargs)[source]#

Bases: DisableSiteMixin, TestCase

Test cases for date library processed by unittest.

abstract_class = False#
test_Cat_BirthsAD()#

The test ported from date.py using Cat_BirthsAD format.

test_Cat_BirthsBC()#

The test ported from date.py using Cat_BirthsBC format.

test_Cat_DeathsAD()#

The test ported from date.py using Cat_DeathsAD format.

test_Cat_DeathsBC()#

The test ported from date.py using Cat_DeathsBC format.

test_Cat_Year_MusicAlbums()#

The test ported from date.py using Cat_Year_MusicAlbums format.

test_CenturyAD()#

The test ported from date.py using CenturyAD format.

test_CenturyAD_Cat()#

The test ported from date.py using CenturyAD_Cat format.

test_CenturyBC()#

The test ported from date.py using CenturyBC format.

test_CenturyBC_Cat()#

The test ported from date.py using CenturyBC_Cat format.

test_CurrEvents()#

The test ported from date.py using CurrEvents format.

test_Day_April()#

The test ported from date.py using Day_April format.

test_Day_August()#

The test ported from date.py using Day_August format.

test_Day_December()#

The test ported from date.py using Day_December format.

test_Day_February()#

The test ported from date.py using Day_February format.

test_Day_January()#

The test ported from date.py using Day_January format.

test_Day_July()#

The test ported from date.py using Day_July format.

test_Day_June()#

The test ported from date.py using Day_June format.

test_Day_March()#

The test ported from date.py using Day_March format.

test_Day_May()#

The test ported from date.py using Day_May format.

test_Day_November()#

The test ported from date.py using Day_November format.

test_Day_October()#

The test ported from date.py using Day_October format.

test_Day_September()#

The test ported from date.py using Day_September format.

test_DecadeAD()#

The test ported from date.py using DecadeAD format.

test_DecadeBC()#

The test ported from date.py using DecadeBC format.

test_MillenniumAD()#

The test ported from date.py using MillenniumAD format.

test_MillenniumBC()#

The test ported from date.py using MillenniumBC format.

test_MonthName()#

The test ported from date.py using MonthName format.

test_Number()#

The test ported from date.py using Number format.

test_YearAD()#

The test ported from date.py using YearAD format.

test_YearBC()#

The test ported from date.py using YearBC format.

test_Year_April()#

The test ported from date.py using Year_April format.

test_Year_August()#

The test ported from date.py using Year_August format.

test_Year_December()#

The test ported from date.py using Year_December format.

test_Year_February()#

The test ported from date.py using Year_February format.

test_Year_January()#

The test ported from date.py using Year_January format.

test_Year_July()#

The test ported from date.py using Year_July format.

test_Year_June()#

The test ported from date.py using Year_June format.

test_Year_March()#

The test ported from date.py using Year_March format.

test_Year_May()#

The test ported from date.py using Year_May format.

test_Year_November()#

The test ported from date.py using Year_November format.

test_Year_October()#

The test ported from date.py using Year_October format.

test_Year_September()#

The test ported from date.py using Year_September format.

class tests.date_tests.TestDateMeta(name, bases, dct)[source]#

Bases: MetaTestCaseClass

Date test meta class.

Create the new class.

class tests.date_tests.TestMonthDelta(*args, **kwargs)[source]#

Bases: DisableSiteMixin, TestCase

Tests for adding months to a date and getting the months between two.

abstract_class = False#
test_apply_negative_delta()[source]#

Test adding months to a date.

test_apply_positive_delta()[source]#

Test adding months to a date.

test_get_delta()[source]#

Test that the delta is calculated correctly.

class tests.date_tests.TestMonthName(*args, **kwargs)[source]#

Bases: DisableSiteMixin, TestCase

Test MonthName format.

abstract_class = False#
net = True#
test_month_name()[source]#

Test some MonthName results.

test_month_name_formats()[source]#

Test MonthName format for codes retrieved via MediaWiki message.