def accept_invite(self, email, username):
        self.data['invited'].remove(email)
        # Mock user id is the same as username
        user_id = username
        self.data['users'][user_id] = {
            'email': email,
            'name': username
        }
Imitate the user signing up for a slack account after invitation.
dataset/ETHPy150Open unlimitedlabs/orchestra/orchestra/communication/tests/helpers/slack.py/BaseAPI.accept_invite