def create_admin_user(self): username = self.get_input('Enter admin username: '******'Enter admin password: '******'Repeat admin password: '******'Enter admin email: ') self.create_user(username, password, email, [ADMIN_USER_ROLE_SID]) sys.exit(0)
def test_get_hmac_password(self): password = get_hmac_password("Test$passw0Rd", "hfdgytriuyewt&^54763254jhdgfsd") self.assertEquals(password, "hmac:ebbd4e004c511dc0b43aa4e249128e65")