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

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

Issue 26418002: Docserver: Pull knowledge of host file systems into a single (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: correct similarity Created 7 years, 2 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 | « no previous file | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/api_data_source_test.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source_test.py b/chrome/common/extensions/docs/server2/api_data_source_test.py
index 9864fb7a75a8b5e6899eb251d5b30867a6c03746..e883fca2e931ef0f378071872754cba7f5287856 100755
--- a/chrome/common/extensions/docs/server2/api_data_source_test.py
+++ b/chrome/common/extensions/docs/server2/api_data_source_test.py
@@ -40,7 +40,7 @@ def _GetType(dict_, name):
class FakeAvailabilityFinder(object):
def GetApiAvailability(self, version):
- return ChannelInfo('stable', 396, 5)
+ return ChannelInfo('stable', '396', 5)
class FakeSamplesDataSource(object):
@@ -172,7 +172,7 @@ class APIDataSourceTest(unittest.TestCase):
None)
# The model namespace is "tester". No predetermined availability is found,
# so the FakeAvailabilityFinder instance is used to find availability.
- self.assertEqual(ChannelInfo('stable', 396, 5),
+ self.assertEqual(ChannelInfo('stable', '396', 5),
model._GetApiAvailability())
# These APIs have predetermined availabilities in the
@@ -182,15 +182,15 @@ class APIDataSourceTest(unittest.TestCase):
model._GetApiAvailability())
model._namespace.name = 'dev_api'
- self.assertEqual(ChannelInfo('dev', 1500, 28),
+ self.assertEqual(ChannelInfo('dev', '1500', 28),
model._GetApiAvailability())
model._namespace.name = 'beta_api'
- self.assertEqual(ChannelInfo('beta', 1453, 27),
+ self.assertEqual(ChannelInfo('beta', '1453', 27),
model._GetApiAvailability())
model._namespace.name = 'stable_api'
- self.assertEqual(ChannelInfo('stable', 1132, 20),
+ self.assertEqual(ChannelInfo('stable', '1132', 20),
model._GetApiAvailability())
def testGetIntroList(self):
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698