blob: 33250ae17fa49528c818356cdae635b86b651291 [file] [log] [blame]
package com.jetbrains.env.python.testing;
import com.jetbrains.env.PyEnvTestCase;
import com.jetbrains.env.ut.PyNoseTestTask;
/**
* User : catherine
*/
public class PythonNoseTestingTest extends PyEnvTestCase{
public void testNoseRunner() {
runPythonTest(new PyNoseTestTask("/testRunner/env/nose", "test1.py") {
@Override
public void after() {
assertEquals(3, allTestsCount());
assertEquals(3, passedTestsCount());
allTestsPassed();
}
});
}
public void testNoseRunner2() {
runPythonTest(new PyNoseTestTask("/testRunner/env/nose", "test2.py") {
@Override
public void after() {
assertEquals(8, allTestsCount());
assertEquals(5, passedTestsCount());
assertEquals(3, failedTestsCount());
}
});
}
}