This commit is contained in:
Ilya.Kazakevich
2015-08-31 20:24:46 +03:00
parent 637991005d
commit 4f46846c99
@@ -144,10 +144,10 @@ public class PythonUnitTestingTest extends PyEnvTestCase {
@NotNull final String stderr,
@NotNull final String all) {
final List<String> fileNames = runner.getHighlightedStringsInConsole().getSecond();
Assert.assertThat(String.format("Wrong number of highlighted entries(%s) in the following output: %s",
Assert.assertTrue(String.format("Not enough highlighted entries(%s) in the following output: %s",
StringUtil.join(fileNames, ","),
runner.getAllConsoleText()),
fileNames, Matchers.hasSize(3));
fileNames.size() >= 3);
// UnitTest highlights file name
Assert.assertThat("Bad line highlighted", fileNames, Matchers.everyItem(Matchers.endsWith(fileName)));
}