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 shutil | 7 import shutil |
8 import unittest | 8 import unittest |
9 | 9 |
10 from trend_graph import TrendGraph | 10 from trend_graph import TrendGraph |
11 | 11 |
(...skipping 19 matching lines...) Expand all Loading... |
31 f.close() | 31 f.close() |
32 lineCount = 0 | 32 lineCount = 0 |
33 for line in lines2: | 33 for line in lines2: |
34 if '2008,0,1,13,45,00' in line: | 34 if '2008,0,1,13,45,00' in line: |
35 lineCount += 1 | 35 lineCount += 1 |
36 self.assertEqual(lineCount, 2) | 36 self.assertEqual(lineCount, 2) |
37 | 37 |
38 | 38 |
39 if __name__ == '__main__': | 39 if __name__ == '__main__': |
40 unittest.main() | 40 unittest.main() |
OLD | NEW |