Improve assertion error in check_file_ext test
Improve the assertion error message for the _check_file_ext test in test_titles.py so that it is possible to tell which file caused the test to fail. Change-Id: I2f554307a2c1002b2fb04183a8c2aeed6ee01fdc
This commit is contained in:
parent
a75428a049
commit
fab501cc8e
|
@ -82,7 +82,7 @@ class TestTitles(testtools.TestCase):
|
|||
|
||||
def _check_file_ext(self, filename):
|
||||
self.assertTrue(filename.endswith(".rst"),
|
||||
"spec's file must uses 'rst' extension.")
|
||||
"%s spec's file must uses 'rst' extension." % filename)
|
||||
|
||||
def _check_lp_link(self, filename, raw):
|
||||
"""Check that the a link to Launchpad is present.
|
||||
|
|
Loading…
Reference in New Issue