Exemple #1
0
 def test_matchers_iso_date_with_wrong_sec(self):
     assert_that(DATE_ISO_FORMAT_WRONG_SEC, is_not(date_iso()))
Exemple #2
0
 def test_matchers_iso_date_with_wrong_month(self):
     assert_that(DATE_ISO_FORMAT_WRONG_MONTH, is_not(date_iso()))
Exemple #3
0
 def test_matchers_iso_date_with_wrong_hour(self):
     assert_that(DATE_ISO_FORMAT_WRONG_HOUR, is_not(date_iso()))
Exemple #4
0
 def test_matchers_iso_date_with_different_order(self):
     assert_that(DATE_ISO_FORMAT_WRONG_ORDER, is_not(date_iso()))
     assert_that(DATE_ISO_FORMAT_WRONG_ORDER_1, is_not(date_iso()))
Exemple #5
0
 def test_matchers_iso_date_with_slash_separator(self):
     assert_that(DATE_ISO_FORMAT.replace("-", "/"), is_(date_iso()))
Exemple #6
0
 def test_matchers_iso_date_without_time(self):
     assert_that(DATE_ISO_FORMAT.split("T")[0], is_(date_iso()))
Exemple #7
0
 def test_matches_iso_date_with_miliseconds(self):
     assert_that(DATE_ISO_FORMAT_MILISECONDS, is_(date_iso()))
Exemple #8
0
 def test_matches_iso_date(self):
     assert_that(DATE_ISO_FORMAT, is_(date_iso()))
     assert_that(DATE_ISO_FORMAT_SPACE, is_(date_iso()))