// @staticmethod
// def static2(self):
// pass
String line = "class TestStatic(object):";
final File file = new File(TestDependent.TEST_PYSRC_LOC + "extendable/static.py");
RefactoringRequest refactoringRequest = createRefactoringRequest(line, file);
refactoringRequest.ps = new PySelection(refactoringRequest.getDoc(), 0, line.length()
- "Static(object):".length()); //find the 'TestStatic' class itself
refactoringRequest.setAdditionalInfo(AstEntryRefactorerRequestConstants.FIND_DEFINITION_IN_ADDITIONAL_INFO,
false);
ItemPointer[] pointers = refactorer.findDefinition(refactoringRequest);
assertEquals(1, pointers.length);
assertEquals(file, pointers[0].file);