

def test_create_existing_account(self):
    '\n        verify we get an appropriate error when creating an account with an\n        already used username\n\n        '
    (username, password) = get_test_user_pass()
    app_url = get_test_app_url()
    token_manager = auth.TokenManager(username=username, password=password, app_url=app_url)
    try:
        accounts.create_user('Jut Tools User Never', username, 'jut-tools-user-never@jut.io', 'bigdata', token_manager=token_manager, app_url=app_url)
    except JutException as exception:
        self.assertIn('username in use', token_manager.message)

dataset/ETHPy150Open jut-io/jut-python-tools/tests/accounts_api_tests.py AccountsAPITests.test_create_existing_account/VarMisuse@86/191 `exception`->`token_manager`