Add functional test demonstrating #4370

After PyCQA/astroid#1166 is merged, this test should become green.
2 files changed