'Create a non-staff user, log them in (if authenticate=True), and return the client, user to use for testing.'

def create_non_staff_authed_user_client(self, authenticate=True):

    (nonstaff, password) = self.create_non_staff_user()
    client = AjaxEnabledTestClient()
    if authenticate:
        client.login(username=nonstaff.username, password=password)
    nonstaff.is_authenticated = (lambda : authenticate)
    return (client, nonstaff)
