def METHOD_NAME(self):
    validator = SampleCodeValidator("variable1")
    assert not validator.errors
    validator = SampleCodeValidator("[variable2]")
    assert not validator.errors
    validator = SampleCodeValidator("[variable1, variable1]")
    assert validator.errors
    validator = SampleCodeValidator("[variable1, variable2]")
    assert validator.errors