added tests for PY-3281

This commit is contained in:
Ekaterina Tuzova
2011-05-20 18:01:17 +04:00
parent 240949c156
commit 4ae7a9b417
3 changed files with 20 additions and 0 deletions
@@ -0,0 +1,8 @@
a = True
b = False
c = True
d = False
#before intention
if not(not(a and b and c) and not d):
print "before"
@@ -0,0 +1,8 @@
a = True
b = False
c = True
d = False
#before intention
if a and b and c or<caret> d:
print "before"
@@ -20,6 +20,10 @@ public class PythonDemorganLawIntentionTest extends PyLightFixtureTestCase {
doTest();
}
public void test4() throws Exception {
doTest();
}
private void doTest() throws Exception {
myFixture.configureByFile("before" + getTestName(false) + ".py");
final IntentionAction action = myFixture.findSingleIntention("DeMorgan Law");