OLD | NEW |
1 # Copyright (C) 2011 Google Inc. All rights reserved. | 1 # Copyright (C) 2011 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 18 matching lines...) Expand all Loading... |
29 import os | 29 import os |
30 import re | 30 import re |
31 import unittest | 31 import unittest |
32 | 32 |
33 | 33 |
34 from webkitpy.common.system import filesystem_mock | 34 from webkitpy.common.system import filesystem_mock |
35 from webkitpy.common.system import filesystem_unittest | 35 from webkitpy.common.system import filesystem_unittest |
36 | 36 |
37 | 37 |
38 class MockFileSystemTest(unittest.TestCase, filesystem_unittest.GenericFileSyste
mTests): | 38 class MockFileSystemTest(unittest.TestCase, filesystem_unittest.GenericFileSyste
mTests): |
| 39 |
39 def setUp(self): | 40 def setUp(self): |
40 self.fs = filesystem_mock.MockFileSystem() | 41 self.fs = filesystem_mock.MockFileSystem() |
41 self.setup_generic_test_dir() | 42 self.setup_generic_test_dir() |
42 | 43 |
43 def tearDown(self): | 44 def tearDown(self): |
44 self.teardown_generic_test_dir() | 45 self.teardown_generic_test_dir() |
45 self.fs = None | 46 self.fs = None |
46 | 47 |
47 def quick_check(self, test_fn, good_fn, *tests): | 48 def quick_check(self, test_fn, good_fn, *tests): |
48 for test in tests: | 49 for test in tests: |
(...skipping 29 matching lines...) Expand all Loading... |
78 'foo/', | 79 'foo/', |
79 'foo/.', | 80 'foo/.', |
80 'foo/bar', | 81 'foo/bar', |
81 '/foo', | 82 '/foo', |
82 'foo/../bar', | 83 'foo/../bar', |
83 'foo/../bar/baz', | 84 'foo/../bar/baz', |
84 '../foo') | 85 '../foo') |
85 | 86 |
86 def test_relpath_win32(self): | 87 def test_relpath_win32(self): |
87 pass | 88 pass |
OLD | NEW |