'Test the difference in behavior when a username is supplied to get_account_settings.'

def test_get_username_provided(self):

    account_settings = get_account_settings(self.default_request)[0]
    self.assertEqual(self.user.username, account_settings['username'])
    account_settings = get_account_settings(self.default_request, usernames=[self.user.username])[0]
    self.assertEqual(self.user.username, account_settings['username'])
    account_settings = get_account_settings(self.default_request, usernames=[self.different_user.username])[0]
    self.assertEqual(self.different_user.username, account_settings['username'])
