def setUp(self, device = os.getenv('<STR_LIT>', '<STR_LIT>'), debug = False):
self.hsm = pyhsm.base.YHSM(device = device, debug = debug)<EOL>if HsmPassphrase is not None and HsmPassphrase != "<STR_LIT>":<EOL><INDENT>try:<EOL><INDENT>self.hsm.unlock(password = HsmPassphrase.decode("<STR_LIT>"))<EOL>self.otp_unlock()<EOL><DEDENT>except pyhsm.exception.YHSM_CommandFailed as e:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Common initialization class for our tests. Initializes a
YubiHSM in self.hsm.