File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ def is_expired(self):
159159 """
160160 if not self .expires :
161161 return True
162-
162+
163163 return timezone .now () >= self .expires
164164
165165 def redirect_uri_allowed (self , uri ):
@@ -203,7 +203,7 @@ def is_expired(self):
203203 """
204204 if not self .expires :
205205 return True
206-
206+
207207 return timezone .now () >= self .expires
208208
209209 def allow_scopes (self , scopes ):
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ class TestGrantModel(TestCase):
139139 def test_str (self ):
140140 grant = Grant (code = "test_code" )
141141 self .assertEqual ("%s" % grant , grant .code )
142-
142+
143143 def test_expires_can_be_none (self ):
144144 grant = Grant (code = "test_code" )
145145 self .assertIsNone (grant .expires )
@@ -164,7 +164,7 @@ def test_user_can_be_none(self):
164164 )
165165 access_token = AccessToken .objects .create (token = "test_token" , application = app , expires = timezone .now ())
166166 self .assertIsNone (access_token .user )
167-
167+
168168 def test_expires_can_be_none (self ):
169169 access_token = AccessToken (token = "test_token" )
170170 self .assertIsNone (access_token .expires )
You can’t perform that action at this time.
0 commit comments