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:
Devananda van der Veen 2016-04-13 09:28:38 -07:00
parent a75428a049
commit fab501cc8e
1 changed files with 1 additions and 1 deletions

View File

@ -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.