Add codename python tests
Stefano Rivera
12 years ago
70 | 70 | "sarge", "etch"] |
71 | 71 | self.assertEqual(self._distro_info.unsupported(self._date), unsupported) |
72 | 72 | |
73 | def test_codename(self): | |
74 | """Test: Codename decoding""" | |
75 | self.assertIsNone(self._distro_info.codename('foobar')) | |
76 | self.assertEqual(self._distro_info.codename('testing', self._date), | |
77 | self._distro_info.testing(self._date)) | |
78 | ||
73 | 79 | |
74 | 80 | #pylint: disable=R0904 |
75 | 81 | class UbuntuDistroInfoTestCase(unittest.TestCase): |