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 unittest | 7 import unittest |
8 | 8 |
9 from layouttests import LayoutTests | 9 from layouttests import LayoutTests |
10 from test_expectations import TestExpectations | 10 from test_expectations import TestExpectations |
11 | 11 |
(...skipping 27 matching lines...) Expand all Loading... |
39 def testGetParentDirectoryList(self): | 39 def testGetParentDirectoryList(self): |
40 testname_list = ['hoge1/hoge2/hoge3.html', 'hoge1/x.html', | 40 testname_list = ['hoge1/hoge2/hoge3.html', 'hoge1/x.html', |
41 'hoge1/hoge2/hoge4.html'] | 41 'hoge1/hoge2/hoge4.html'] |
42 expected_result = ['hoge1/', 'hoge1/hoge2/'] | 42 expected_result = ['hoge1/', 'hoge1/hoge2/'] |
43 self.assertEquals(LayoutTests.GetParentDirectoryList(testname_list), | 43 self.assertEquals(LayoutTests.GetParentDirectoryList(testname_list), |
44 expected_result) | 44 expected_result) |
45 | 45 |
46 | 46 |
47 if __name__ == '__main__': | 47 if __name__ == '__main__': |
48 unittest.main() | 48 unittest.main() |
OLD | NEW |