Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: appengine/components/components/auth/api_test.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The LUCI Authors. All rights reserved. 2 # Copyright 2014 The LUCI Authors. All rights reserved.
3 # Use of this source code is governed by the Apache v2.0 license that can be 3 # Use of this source code is governed under the Apache License, Version 2.0
4 # found in the LICENSE file. 4 # that can be found in the LICENSE file.
5 5
6 # Disable 'Access to a protected member', Unused argument', 'Unused variable'. 6 # Disable 'Access to a protected member', Unused argument', 'Unused variable'.
7 # pylint: disable=W0212,W0612,W0613 7 # pylint: disable=W0212,W0612,W0613
8 8
9 9
10 import datetime 10 import datetime
11 import Queue 11 import Queue
12 import sys 12 import sys
13 import threading 13 import threading
14 import unittest 14 import unittest
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 def test_is_allowed_oauth_client_id_not_ok_empty(self): 792 def test_is_allowed_oauth_client_id_not_ok_empty(self):
793 self.mock_all('email@email.com', 'some-client-id') 793 self.mock_all('email@email.com', 'some-client-id')
794 with self.assertRaises(api.AuthorizationError): 794 with self.assertRaises(api.AuthorizationError):
795 api.extract_oauth_caller_identity() 795 api.extract_oauth_caller_identity()
796 796
797 797
798 if __name__ == '__main__': 798 if __name__ == '__main__':
799 if '-v' in sys.argv: 799 if '-v' in sys.argv:
800 unittest.TestCase.maxDiff = None 800 unittest.TestCase.maxDiff = None
801 unittest.main() 801 unittest.main()
OLDNEW
« no previous file with comments | « appengine/components/components/auth/api.py ('k') | appengine/components/components/auth/change_log.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698