Could probably do an `assert test_plan.filename.endswith(...)`?