void () { final PyTargetExpression foo = assertResolvesTo(PyTargetExpression.class, "foo"); final PyExpression value = foo.findAssignedValue(); assertInstanceOf(value, PyStringLiteralExpression.class); assertEquals("global", ((PyStringLiteralExpression)value).getStringValue()); }