def test_get_year_month_day_4(): l = '{ED:178._GEORGE_CELY_TO_SIR_JOHN_WESTON_[DRAFT]_[?_JULY_1482]}' assert_equal( (1482, 7, 1), get_year_month_day(l) )
def test_get_year_month_day_3(): l = '{ED:?_November_1627.}' assert_equal( (1627, 11, 1), get_year_month_day(l) )
def test_get_year_month_day_1(): l = "{ED:6._EARL_OF_SHREWSBURY'S_LETTERS_TO_WILLIAM_WENTWORTH._[A]}" assert_equal( (None, None, None), get_year_month_day(l) )
def test_get_year_month_day_2(): l = '{ED:Antwerp,_10_November,_1593.}' assert_equal( (1593, 11, 10), get_year_month_day(l) )
def test_get_year_month_day(): l = '{ED:100._ALLEN_TO_JOHN_ARDEN._ROME,_4_SEPTEMBER_1593.}' assert_equal( (1593, 9, 4), get_year_month_day(l) )