Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
 def test_get_hmac_password(self):
     password = get_hmac_password("Test$passw0Rd", "hfdgytriuyewt&^54763254jhdgfsd")
     self.assertEquals(password, "hmac:ebbd4e004c511dc0b43aa4e249128e65")
Пример #4
0
 def test_get_hmac_password(self):
     password = get_hmac_password("Test$passw0Rd", "hfdgytriuyewt&^54763254jhdgfsd")
     self.assertEquals(password, "hmac:ebbd4e004c511dc0b43aa4e249128e65")