Add tests for PY-17671, PY-17824

This commit is contained in:
Valentina Kiryushkina
2015-12-16 11:09:46 +03:00
parent 71f92e57d4
commit c8748e4c16
3 changed files with 18 additions and 0 deletions
@@ -0,0 +1,5 @@
class Spam:
def eggs(self, a):
print(a)
eggs.name = "monthy"
@@ -0,0 +1,3 @@
class TestFoo:
def test_smt(self):
pass
@@ -87,6 +87,16 @@ public class PyMethodMayBeStaticInspectionTest extends PyTestCase {
doMultiFileTest("abc.py");
}
//PY-17671
public void testMethodWithAttributes() {
doTest();
}
//PY-17824
public void testTestClasses() {
doTest();
}
private void doTest() {
myFixture.configureByFile(getTestName(true) + ".py");
myFixture.enableInspections(PyMethodMayBeStaticInspection.class);