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

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

Issue 314133004: Docserver: Use the testing URL for the new omahaproxy history API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
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 sys 7 import sys
8 import unittest 8 import unittest
9 9
10 from branch_utility import BranchUtility, ChannelInfo 10 from branch_utility import BranchUtility, ChannelInfo
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 dev_info = ChannelInfo('dev', '1500', 28) 114 dev_info = ChannelInfo('dev', '1500', 28)
115 self.assertEquals(dev_info, self._branch_util.GetChannelInfo('dev')) 115 self.assertEquals(dev_info, self._branch_util.GetChannelInfo('dev'))
116 116
117 beta_info = ChannelInfo('beta', '1453', 27) 117 beta_info = ChannelInfo('beta', '1453', 27)
118 self.assertEquals(beta_info, self._branch_util.GetChannelInfo('beta')) 118 self.assertEquals(beta_info, self._branch_util.GetChannelInfo('beta'))
119 119
120 stable_info = ChannelInfo('stable', '1410', 26) 120 stable_info = ChannelInfo('stable', '1410', 26)
121 self.assertEquals(stable_info, self._branch_util.GetChannelInfo('stable')) 121 self.assertEquals(stable_info, self._branch_util.GetChannelInfo('stable'))
122 122
123 def testGetLatestVersionNumber(self): 123 def testGetLatestVersionNumber(self):
124 self.assertEquals(28, self._branch_util.GetLatestVersionNumber()) 124 self.assertEquals(37, self._branch_util.GetLatestVersionNumber())
125 125
126 def testGetBranchForVersion(self): 126 def testGetBranchForVersion(self):
127 self.assertEquals('1500', 127 self.assertEquals('1500',
128 self._branch_util.GetBranchForVersion(28)) 128 self._branch_util.GetBranchForVersion(28))
129 self.assertEquals('1453', 129 self.assertEquals('1453',
130 self._branch_util.GetBranchForVersion(27)) 130 self._branch_util.GetBranchForVersion(27))
131 self.assertEquals('1410', 131 self.assertEquals('1410',
132 self._branch_util.GetBranchForVersion(26)) 132 self._branch_util.GetBranchForVersion(26))
133 self.assertEquals('1364', 133 self.assertEquals('1364',
134 self._branch_util.GetBranchForVersion(25)) 134 self._branch_util.GetBranchForVersion(25))
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 self.assertEquals('stable', 169 self.assertEquals('stable',
170 self._branch_util.GetChannelForVersion(14)) 170 self._branch_util.GetChannelForVersion(14))
171 self.assertEquals(None, 171 self.assertEquals(None,
172 self._branch_util.GetChannelForVersion(30)) 172 self._branch_util.GetChannelForVersion(30))
173 self.assertEquals(None, 173 self.assertEquals(None,
174 self._branch_util.GetChannelForVersion(42)) 174 self._branch_util.GetChannelForVersion(42))
175 175
176 176
177 if __name__ == '__main__': 177 if __name__ == '__main__':
178 unittest.main() 178 unittest.main()
OLDNEW
« 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