コード例 #1
0
ファイル: test_regex.py プロジェクト: jvrsantacruz/matchers
 def test_matchers_iso_date_with_wrong_sec(self):
     assert_that(DATE_ISO_FORMAT_WRONG_SEC, is_not(date_iso()))
コード例 #2
0
ファイル: test_regex.py プロジェクト: jvrsantacruz/matchers
 def test_matchers_iso_date_with_wrong_month(self):
     assert_that(DATE_ISO_FORMAT_WRONG_MONTH, is_not(date_iso()))
コード例 #3
0
ファイル: test_regex.py プロジェクト: jvrsantacruz/matchers
 def test_matchers_iso_date_with_wrong_hour(self):
     assert_that(DATE_ISO_FORMAT_WRONG_HOUR, is_not(date_iso()))
コード例 #4
0
ファイル: test_regex.py プロジェクト: jvrsantacruz/matchers
 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()))
コード例 #5
0
ファイル: test_regex.py プロジェクト: jvrsantacruz/matchers
 def test_matchers_iso_date_with_slash_separator(self):
     assert_that(DATE_ISO_FORMAT.replace("-", "/"), is_(date_iso()))
コード例 #6
0
ファイル: test_regex.py プロジェクト: jvrsantacruz/matchers
 def test_matchers_iso_date_without_time(self):
     assert_that(DATE_ISO_FORMAT.split("T")[0], is_(date_iso()))
コード例 #7
0
ファイル: test_regex.py プロジェクト: jvrsantacruz/matchers
 def test_matches_iso_date_with_miliseconds(self):
     assert_that(DATE_ISO_FORMAT_MILISECONDS, is_(date_iso()))
コード例 #8
0
ファイル: test_regex.py プロジェクト: jvrsantacruz/matchers
 def test_matches_iso_date(self):
     assert_that(DATE_ISO_FORMAT, is_(date_iso()))
     assert_that(DATE_ISO_FORMAT_SPACE, is_(date_iso()))