diff options
Diffstat (limited to 'simplejenkinsapi/order_tests.py')
-rw-r--r-- | simplejenkinsapi/order_tests.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/simplejenkinsapi/order_tests.py b/simplejenkinsapi/order_tests.py index 7fef992..1eed6da 100644 --- a/simplejenkinsapi/order_tests.py +++ b/simplejenkinsapi/order_tests.py @@ -1,17 +1,17 @@ # simplejenkinsapi/order_tests.py -- unit tests for build ordering # # Copyright 2012 Lars Wirzenius -# +# # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. @@ -23,8 +23,8 @@ from simplejenkinsapi import order def _names(projects): return [p['name'] for p in projects] - - + + class OrderTests(unittest.TestCase): def setUp(self): @@ -66,6 +66,6 @@ class OrderTests(unittest.TestCase): self.B['build-depends'] = ['D'] self.C['build-depends'] = ['D'] ps = [self.A, self.B, self.C, self.D] - self.assertEqual(_names(order(ps)), + self.assertEqual(_names(order(ps)), _names([self.D, self.B, self.C, self.A])) |