Beispiel #1
0
def test_month_day_year():
    m = month_day_year()
    assert len(m.month) > 0
    assert 1 <= len(m.day) <= 31
    assert 1900 <= int(m.year) <= 2010
    assertIsInstance(m.month, StringType)
    assertIsInstance(m.day, StringType)
    assertIsInstance(m.day, StringType)
Beispiel #2
0
def test_month_day():
    m = month_day()
    assert len(m.month) > 0
    assert 1 <= len(m.day) <= 31
    assertIsInstance(m.month, StringType)
    assertIsInstance(m.day, StringType)