OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Swarming 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 by the Apache v2.0 license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import json | 6 import json |
7 import os | 7 import os |
8 import re | 8 import re |
9 import sys | 9 import sys |
10 import tempfile | 10 import tempfile |
11 import unittest | 11 import unittest |
12 | 12 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 # TODO(maruel): Fix one day. | 121 # TODO(maruel): Fix one day. |
122 self.assertEqual(u'bot_error', events.pop(0)['event']) | 122 self.assertEqual(u'bot_error', events.pop(0)['event']) |
123 self.assertEqual(expected, events) | 123 self.assertEqual(expected, events) |
124 | 124 |
125 | 125 |
126 if __name__ == '__main__': | 126 if __name__ == '__main__': |
127 fix_encoding.fix_encoding() | 127 fix_encoding.fix_encoding() |
128 if '-v' in sys.argv: | 128 if '-v' in sys.argv: |
129 unittest.TestCase.maxDiff = None | 129 unittest.TestCase.maxDiff = None |
130 unittest.main() | 130 unittest.main() |
OLD | NEW |