def METHOD_NAME(self):
    commands = ["variable.method(...)"]
    if sys.version_info[0] == 3 and sys.version_info[1] >= 6:
        commands.append('f"{variable}"')
    for command in commands:
        validator = SampleCodeValidator(command)
        assert validator.errors