diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-05-26 18:41:59 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-05-26 18:41:59 -0300 |
commit | 97e0d616d7a7a29acf611d321f7be2fae16833a5 (patch) | |
tree | 52d4627379e1ef59335104c4456fbd771ea249e9 /tests/test_description.py | |
parent | added error handling to Description._parse_self_depends() (diff) | |
download | g-octave-97e0d616d7a7a29acf611d321f7be2fae16833a5.tar.gz g-octave-97e0d616d7a7a29acf611d321f7be2fae16833a5.tar.bz2 g-octave-97e0d616d7a7a29acf611d321f7be2fae16833a5.zip |
small improvements in the tests for g_octave/description.py (tests/test_description.py)
Diffstat (limited to 'tests/test_description.py')
-rw-r--r-- | tests/test_description.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_description.py b/tests/test_description.py index ae32128..f462b8f 100644 --- a/tests/test_description.py +++ b/tests/test_description.py @@ -171,17 +171,20 @@ class TestDescription(unittest.TestCase): ) def test_attributes(self): + # TODO: split this method to improve the error reporting + # TODO: figure out how to test the comments self.assertEqual(self.desc.name, 'package name') self.assertEqual(self.desc.version, '0.0.1') self.assertEqual(self.desc.date, '2009-01-01') - self.assertEqual(self.desc.author, 'Author Name') + self.assertEqual(self.desc.author, 'Author Name: testing \':\'s in the value.') self.assertEqual(self.desc.maintainer, 'Maintainer Name') self.assertEqual(self.desc.title, 'Package Title') self.assertEqual(self.desc.description, 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.') self.assertEqual(self.desc.categories, 'Category1,Category2, Category3') self.assertEqual(self.desc.url, 'http://example.org') - # the requirements can't be tested :( + # the requirements can't be tested because the test system can't + # check the non-octave packages yet. self.assertEqual(self.desc.systemrequirements, []) self.assertEqual(self.desc.buildrequires, []) |