| OLD | NEW |
| 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 Loading... |
| 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() |
| OLD | NEW |