test for wrapping in docstrings

This commit is contained in:
Dmitry Jemerov
2010-09-23 15:37:33 +04:00
parent 2bceae0ee7
commit 40d77973f1
3 changed files with 14 additions and 1 deletions
@@ -0,0 +1,5 @@
def foo():
"""
Gallia est omnis divisa in partes tres, quarum unam incolumnt Belgae,
aliam Aquitani
"""
+4
View File
@@ -0,0 +1,4 @@
def foo():
"""
Gallia est omnis divisa in partes tres, quarum unam incolumnt Belgae, aliam <caret>
"""
@@ -37,9 +37,13 @@ public class PyWrapTest extends PyLightFixtureTestCase {
doTest("Aquitani");
}
public void testWrapInDocstring() {
doTest("Aquitani");
}
private void doTest(final String textToType) {
myFixture.configureByFile("wrap/" + getTestName(false) + ".py");
myFixture.type(textToType);
myFixture.checkResultByFile("wrap/" + getTestName(false) + ".after.py");
myFixture.checkResultByFile("wrap/" + getTestName(false) + ".after.py", true);
}
}