void (final String expectedType, final String text) { myFixture.configureByFile("typeParser/typeParser.py"); final PsiFile file = myFixture.getFile(); final PyType type = PyTypeParser.getTypeByName(file, text); TypeEvalContext context = TypeEvalContext.userInitiated(file.getProject(), file).withTracing(); final String actualType = PythonDocumentationProvider.getTypeName(type, context); assertEquals(expectedType, actualType); }