| Index: chrome/common/extensions/docs/server2/path_util_test.py
|
| diff --git a/chrome/common/extensions/docs/server2/path_util_test.py b/chrome/common/extensions/docs/server2/path_util_test.py
|
| index 26527a06ad1d16a71bbd069cd84c21a80642ef42..cf86e3b98f33abc8e20a960c352c6e3fcca2e9f2 100755
|
| --- a/chrome/common/extensions/docs/server2/path_util_test.py
|
| +++ b/chrome/common/extensions/docs/server2/path_util_test.py
|
| @@ -5,7 +5,7 @@
|
|
|
| import unittest
|
|
|
| -from path_util import SplitParent
|
| +from path_util import SplitParent, Split
|
|
|
|
|
| class PathUtilTest(unittest.TestCase):
|
| @@ -24,6 +24,13 @@ class PathUtilTest(unittest.TestCase):
|
| self.assertEqual(('/p1/p2', 'hi'), SplitParent('/p1/p2/hi'))
|
| self.assertEqual(('/p1/p2', 'hi/'), SplitParent('/p1/p2/hi/'))
|
|
|
| + def testSplit(self):
|
| + self.assertEqual(['p1/', 'p2/', 'p3'], Split('p1/p2/p3'))
|
| + self.assertEqual(['p1/', 'p2/', 'p3/'], Split('p1/p2/p3/'))
|
| + self.assertEqual([''], Split(''))
|
| + self.assertEqual(['p1/'], Split('p1/'))
|
| + self.assertEqual(['p1'], Split('p1'))
|
| +
|
|
|
| if __name__ == '__main__':
|
| unittest.main()
|
|
|