'Create the account and check that it worked.'

def create_account(self, username, email, password):

    url = reverse('create_account')
    request_data = {'username': username, 'email': email, 'password': password, 'name': 'username', 'terms_of_service': 'true', 'honor_code': 'true'}
    resp = self.assert_request_status_code(200, url, method='POST', data=request_data)
    data = json.loads(resp.content)
    self.assertEqual(data['success'], True)
    user = User.objects.get(email=email)
    self.assertFalse(user.is_active)
    return user
