File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ install:
19
19
- travis_retry pip install $DJANGO
20
20
- travis_retry pip install pytz
21
21
- travis_retry pip install coveralls
22
+ - travis_retry pip install django-discover-runner
22
23
23
24
script :
24
25
- coverage run --source=timezone_utils run_tests.py
Original file line number Diff line number Diff line change 1
- from invalid import *
2
- from valid import *
1
+ __author__ = 'michaelbarr'
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ class TimeZoneChoicesTestCase(TestCase):
21
21
def test_TIMEZONE_OFFSET_REGEX (self ):
22
22
now = datetime .now (pytz .timezone ('US/Eastern' ))
23
23
self .assertRegexpMatches (str (now .strftime ('%z' )), TIMEZONE_OFFSET_REGEX )
24
- self .assertNotRegexpMatches (
25
- '-' + str (now .strftime ('%z' )),
26
- TIMEZONE_OFFSET_REGEX
24
+ self .assertEqual (
25
+ TIMEZONE_OFFSET_REGEX . match ( '-' + str (now .strftime ('%z' ) )),
26
+ None
27
27
)
28
- self .assertNotRegexpMatches (
29
- str (now .strftime ('%z' ) + '1' ),
30
- TIMEZONE_OFFSET_REGEX
28
+ self .assertEqual (
29
+ TIMEZONE_OFFSET_REGEX . match ( str (now .strftime ('%z' ) + '1' ) ),
30
+ None
31
31
)
32
32
33
33
def test_ALL_TIMEZONES_CHOICES_length (self ):
You can’t perform that action at this time.
0 commit comments