OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 from datetime import datetime | 6 from datetime import datetime |
7 from datetime import timedelta | 7 |
8 import time | 8 import time |
9 import unittest | 9 import unittest |
10 | 10 |
11 | 11 |
12 from test_expectations_history import TestExpectationsHistory | 12 from test_expectations_history import TestExpectationsHistory |
13 | 13 |
14 | 14 |
15 class TestTestExpectationsHistory(unittest.TestCase): | 15 class TestTestExpectationsHistory(unittest.TestCase): |
16 """Unit tests for the TestExpectationsHistory class.""" | 16 """Unit tests for the TestExpectationsHistory class.""" |
17 | 17 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 ctime = time.mktime(ctime.timetuple()) | 62 ctime = time.mktime(ctime.timetuple()) |
63 testname = 'media/video-zoom-controls.html' | 63 testname = 'media/video-zoom-controls.html' |
64 testname_list = [testname] | 64 testname_list = [testname] |
65 result_list = TestExpectationsHistory.GetDiffBetweenTimes( | 65 result_list = TestExpectationsHistory.GetDiffBetweenTimes( |
66 ptime, ctime, testname_list) | 66 ptime, ctime, testname_list) |
67 self.assertTrue(self.AssertTestName(result_list, testname)) | 67 self.assertTrue(self.AssertTestName(result_list, testname)) |
68 | 68 |
69 | 69 |
70 if __name__ == '__main__': | 70 if __name__ == '__main__': |
71 unittest.main() | 71 unittest.main() |
OLD | NEW |