allura
修訂 | 0c386898891109c63da886e560e7cbcf13437c6c (tree) |
---|---|
時間 | 2012-05-15 00:09:11 |
作者 | Cory Johns <johnsca@geek...> |
Commiter | Yaroslav Luzin |
[#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 |