allura
Revision | 0139f6bb890c427cb7dfd620f5dc0d5d4945ee84 (tree) |
---|---|
Zeit | 2012-05-08 04:29:16 |
Autor | Cory Johns <johnsca@geek...> |
Commiter | Cory Johns |
[#4115] Fixed failing test
Signed-off-by: Cory Johns <johnsca@geek.net>
@@ -1,4 +1,5 @@ | ||
1 | 1 | import json |
2 | +import re | |
2 | 3 | |
3 | 4 | import tg |
4 | 5 | import pkg_resources |
@@ -174,5 +175,5 @@ class TestRootController(TestController): | ||
174 | 175 | ci = self._get_ci() |
175 | 176 | resp = self.app.get(ci + 'tree/README?force=True') |
176 | 177 | content = str(resp.html.find('div',{'class':'clip grid-19'})) |
177 | - assert '<pre>This is readme' in content, content | |
178 | + assert re.search(r'<pre>.*This is readme', content), content | |
178 | 179 | assert '</pre>' in content, content |