[PATCH 4/5] test_debian_support.py: favor assertLess over assertTrue(.. < ..)
Stefano Zacchiroli
zack at upsilon.cc
Wed Oct 1 14:37:32 UTC 2014
coding style only, no semantic changes
---
tests/test_debian_support.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/test_debian_support.py b/tests/test_debian_support.py
index 0d28f67..4e66ca9 100755
--- a/tests/test_debian_support.py
+++ b/tests/test_debian_support.py
@@ -176,9 +176,9 @@ class ReleaseTests(unittest.TestCase):
"""Tests for debian_support.Release"""
def test_comparison(self):
- self.assertTrue(intern_release('buzz') < intern_release('hamm'))
- self.assertTrue(intern_release('sarge') < intern_release('etch'))
- self.assertTrue(intern_release('lenny') < intern_release('squeeze'))
+ self.assertLess(intern_release('buzz'), intern_release('hamm'))
+ self.assertLess(intern_release('sarge'), intern_release('etch'))
+ self.assertLess(intern_release('lenny'), intern_release('squeeze'))
class HelperRoutineTests(unittest.TestCase):
--
2.1.0
More information about the pkg-python-debian-maint
mailing list