Make distro-info tests scricter.

This commit is contained in:
Benjamin Drung 2011-03-08 18:55:36 +01:00
parent 877592d0a4
commit 56b5ee1703

View File

@ -60,10 +60,9 @@ class DebianDistroInfoTestCase(unittest.TestCase):
def test_unsupported(self): def test_unsupported(self):
"""Test: List all unsupported Debian distribution.""" """Test: List all unsupported Debian distribution."""
unsupported = set(["buzz", "rex", "bo", "hamm", "slink", "potato", unsupported = ["buzz", "rex", "bo", "hamm", "slink", "potato", "woody",
"woody", "sarge", "etch"]) "sarge", "etch"]
self.assertEqual(unsupported - self.assertEqual(self._distro_info.unsupported(self._date), unsupported)
set(self._distro_info.unsupported(self._date)), set())
#pylint: disable=R0904 #pylint: disable=R0904
@ -102,10 +101,9 @@ class UbuntuDistroInfoTestCase(unittest.TestCase):
def test_unsupported(self): def test_unsupported(self):
"""Test: List all unsupported Ubuntu distributions.""" """Test: List all unsupported Ubuntu distributions."""
unsupported = set(["warty", "hoary", "breezy", "edgy", "feisty", unsupported = ["warty", "hoary", "breezy", "edgy", "feisty", "gutsy",
"gutsy", "intrepid", "jaunty"]) "intrepid", "jaunty"]
self.assertEqual(unsupported - self.assertEqual(self._distro_info.unsupported(self._date), unsupported)
set(self._distro_info.unsupported(self._date)), set())
def test_current_unsupported(self): def test_current_unsupported(self):
"""Test: List all unsupported Ubuntu distributions today.""" """Test: List all unsupported Ubuntu distributions today."""