'Test that UserNotFound is thrown if there is no user with username.'

def test_get_user_not_found(self):

    with self.assertRaises(UserNotFound):
        get_account_settings(self.default_request, usernames=['does_not_exist'])
    self.user.username = 'does_not_exist'
    request = self.request_factory.get('/api/user/v1/accounts/')
    request.user = self.user
    with self.assertRaises(UserNotFound):
        get_account_settings(request)
