| 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 'Unused variable', 'Unused argument' and 'Method could be a function'. | 6 # Disable 'Unused variable', 'Unused argument' and 'Method could be a function'. |
| 7 # pylint: disable=W0612,W0613,R0201 | 7 # pylint: disable=W0612,W0613,R0201 |
| 8 | 8 |
| 9 import datetime | 9 import datetime |
| 10 import json | 10 import json |
| 11 import os | 11 import os |
| 12 import sys | 12 import sys |
| 13 import unittest | 13 import unittest |
| 14 | 14 |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 }) | 469 }) |
| 470 self.assertEqual( | 470 self.assertEqual( |
| 471 model.Identity(model.IDENTITY_SERVICE, 'some-app'), | 471 model.Identity(model.IDENTITY_SERVICE, 'some-app'), |
| 472 handler.service_to_service_authentication(request)) | 472 handler.service_to_service_authentication(request)) |
| 473 | 473 |
| 474 | 474 |
| 475 if __name__ == '__main__': | 475 if __name__ == '__main__': |
| 476 if '-v' in sys.argv: | 476 if '-v' in sys.argv: |
| 477 unittest.TestCase.maxDiff = None | 477 unittest.TestCase.maxDiff = None |
| 478 unittest.main() | 478 unittest.main() |
| OLD | NEW |