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

Unified Diff: chrome/common/extensions/docs/server2/subversion_file_system_test.py

Issue 14759009: Docserver: fix SubversionFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: posixpath Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/docs/server2/subversion_file_system.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/subversion_file_system_test.py
diff --git a/chrome/common/extensions/docs/server2/subversion_file_system_test.py b/chrome/common/extensions/docs/server2/subversion_file_system_test.py
index 8a78268c735c3aa83ea09c3ac271bb1123c6b8ff..e490b057684758820f8d85e2fb5117fa95521d3a 100755
--- a/chrome/common/extensions/docs/server2/subversion_file_system_test.py
+++ b/chrome/common/extensions/docs/server2/subversion_file_system_test.py
@@ -9,6 +9,7 @@ import sys
import unittest
from fake_url_fetcher import FakeUrlFetcher
+from file_system import StatInfo
from subversion_file_system import SubversionFileSystem
class SubversionFileSystemTest(unittest.TestCase):
@@ -38,11 +39,17 @@ class SubversionFileSystemTest(unittest.TestCase):
self.assertEqual(expected,
sorted(self._file_system.ReadSingle('list/')))
- def testStat(self):
+ def testDirStat(self):
stat_info = self._file_system.Stat('stat/')
- self.assertEquals('151113', stat_info.version)
- self.assertEquals(json.loads(self._ReadLocalFile('stat_result.json')),
- stat_info.child_versions)
+ expected = StatInfo(
+ '151113',
+ child_versions=json.loads(self._ReadLocalFile('stat_result.json'))
+ )
+ self.assertEquals(expected, stat_info)
+
+ def testFileStat(self):
+ stat_info = self._file_system.Stat('stat/extension_api.h')
+ self.assertEquals(StatInfo('146163'), stat_info)
if __name__ == '__main__':
unittest.main()
« no previous file with comments | « chrome/common/extensions/docs/server2/subversion_file_system.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698