File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 20
20
'INSTALLED_APPS' : (
21
21
'django.contrib.contenttypes' ,
22
22
'django.contrib.auth' ,
23
+ 'discover_runner' ,
23
24
'timezone_utils' ,
24
25
'tests' ,
25
26
)
28
29
DATABASES = {
29
30
'default' : {
30
31
'ENGINE' : 'django.db.backends.sqlite3' ,
31
- # 'NAME': ':memory:',
32
+ 'NAME' : ':memory:' ,
32
33
},
33
34
},
34
35
INSTALLED_APPS = (
Original file line number Diff line number Diff line change 20
20
class TimeZoneChoicesTestCase (TestCase ):
21
21
def test_TIMEZONE_OFFSET_REGEX (self ):
22
22
now = datetime .now (pytz .timezone ('US/Eastern' ))
23
- self .assertRegexpMatches (str (now .strftime ('%z' )), TIMEZONE_OFFSET_REGEX )
23
+ self .assertNotEqual (str (now .strftime ('%z' )), None )
24
24
self .assertEqual (
25
25
TIMEZONE_OFFSET_REGEX .match ('-' + str (now .strftime ('%z' ))),
26
26
None
You can’t perform that action at this time.
0 commit comments