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

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

Issue 17397010: Adding AvailabilityFinder to Doc Server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Second Round of Smaller Fixes Created 7 years, 6 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
Index: chrome/common/extensions/docs/server2/branch_utility_test.py
diff --git a/chrome/common/extensions/docs/server2/branch_utility_test.py b/chrome/common/extensions/docs/server2/branch_utility_test.py
index c6a503405fe38f76c2f2e3051db06b188efdd903..ea9198eb50dfdf75e05b7e2f2c6b062c8ea681fb 100755
--- a/chrome/common/extensions/docs/server2/branch_utility_test.py
+++ b/chrome/common/extensions/docs/server2/branch_utility_test.py
@@ -120,5 +120,26 @@ class BranchUtilityTest(unittest.TestCase):
self.assertEquals(396,
self._branch_util.GetBranchForVersion(5))
+ def testGetChannelForVersion(self):
+ self.assertEquals('trunk',
+ self._branch_util.GetChannelForVersion('trunk'))
+ self.assertEquals('dev',
+ self._branch_util.GetChannelForVersion(28))
+ self.assertEquals('beta',
+ self._branch_util.GetChannelForVersion(27))
+ self.assertEquals('stable',
+ self._branch_util.GetChannelForVersion(26))
+ self.assertEquals('stable',
+ self._branch_util.GetChannelForVersion(22))
+ self.assertEquals('stable',
+ self._branch_util.GetChannelForVersion(18))
+ self.assertEquals('stable',
+ self._branch_util.GetChannelForVersion(14))
+ self.assertEquals(None,
+ self._branch_util.GetChannelForVersion(30))
+ self.assertEquals(None,
+ self._branch_util.GetChannelForVersion(42))
+
+
if __name__ == '__main__':
unittest.main()
« no previous file with comments | « chrome/common/extensions/docs/server2/branch_utility.py ('k') | chrome/common/extensions/docs/server2/cron.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698