OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import os | 6 import os |
7 import scan_sources | 7 import scan_sources |
8 import unittest | 8 import unittest |
9 | 9 |
10 | 10 |
11 class MockSimplePath(object): | 11 class MockSimplePath(object): |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 flat = set([item for item in [sublist for sublist in filelists]]) | 83 flat = set([item for item in [sublist for sublist in filelists]]) |
84 flat = [item for item in flat] | 84 flat = [item for item in flat] |
85 | 85 |
86 flat = sorted(flat) | 86 flat = sorted(flat) |
87 result = sorted(flat) | 87 result = sorted(flat) |
88 self.assertEqual(flat, result) | 88 self.assertEqual(flat, result) |
89 | 89 |
90 if __name__ == '__main__': | 90 if __name__ == '__main__': |
91 unittest.main() | 91 unittest.main() |
92 | |
OLD | NEW |