Attached is a patch adding tests for debsources.filetype. They were all
created from Matthieu's assertions in __main__.
I'm not sure whether I was right to create a new file and a new attribute
('filetype') for these tests; I'll amend the commit according to your
comments.
filetype.py's
Package: qa.debian.org
Severity: wishlist
User: qa.debian@packages.debian.org
Usertags: debsources
Debsources' test coverage is decent:
/srv/debsources$ nosetests --with-coverage debsources/ -v
--cover-package=debsources
[...]
/srv/debsources$ python-coverage report
Name
2 matches
Mail list logo