def test_with_non_digit_strings(self): """Test what happens when we send garbage as params""" self.assertFalse(is_correct_date('tic', 'tac', 'toe'))
def test_far_incorrect_day(self): """Test when day > 31""" self.assertFalse(is_correct_date('2011', '07', '42'))
def test_incorrect_feb_29(self): """Test with an inccorect february 29th""" self.assertFalse(is_correct_date('2011', '02', '29'))
def test_negative_month(self): """We put a month < 0""" self.assertFalse(is_correct_date('2011', '-1', '12'))
def test_incorrect_month(self): """We put a year > 12""" self.assertFalse(is_correct_date('2011', '13', '12'))
def test_incorrect_year_int(self): """We put a year < 1900, passed as an int""" self.assertFalse(is_correct_date(211, 07, 12))
def test_incorrect_year(self): """We put a year < 1900""" self.assertFalse(is_correct_date('211', '07', '12'))
def test_correct_string_date(self): """Test if true is return when date is correct and entered as string""" self.assertTrue(is_correct_date('2011', '07', '12'))