Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: chrome/common/extensions/docs/server2/subversion_file_system_test.py

Issue 10804036: Extensions Docs Server: Internationalized samples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: handlebar Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 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 import os 6 import os
7 import unittest 7 import unittest
8 8
9 from fake_url_fetcher import FakeUrlFetcher 9 from fake_url_fetcher import FakeUrlFetcher
10 from subversion_file_system import SubversionFileSystem 10 from subversion_file_system import SubversionFileSystem
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 self.assertEqual( 23 self.assertEqual(
24 expected, 24 expected,
25 self._file_system.Read(['test1.txt', 'test2.txt', 'test3.txt']).Get()) 25 self._file_system.Read(['test1.txt', 'test2.txt', 'test3.txt']).Get())
26 26
27 def testListDir(self): 27 def testListDir(self):
28 expected = ['dir/'] 28 expected = ['dir/']
29 for i in range(7): 29 for i in range(7):
30 expected.append('file%d.html' % i) 30 expected.append('file%d.html' % i)
31 self.assertEqual(expected, 31 self.assertEqual(expected,
32 sorted(self._file_system.Read(['list/']).Get()['list/'])) 32 sorted(self._file_system.ReadSingle('list/')))
33 33
34 def testStat(self): 34 def testStat(self):
35 # Value is hard-coded into FakeUrlFetcher. 35 # Value is hard-coded into FakeUrlFetcher.
36 self.assertEqual(0, self._file_system.Stat('list/dir/').version) 36 self.assertEqual(0, self._file_system.Stat('list/dir/').version)
37 37
38 if __name__ == '__main__': 38 if __name__ == '__main__':
39 unittest.main() 39 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698