forked from harrisony/slug
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Polley
committed
May 29, 2012
1 parent
d5ed558
commit d5cec76
Showing
3 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env python | ||
"""Tests around creating, publishing, and announcing meetings. | ||
Does not use selenium, so cannot test client behaviour.""" | ||
|
||
import datetime | ||
import random | ||
|
||
import django.test | ||
|
||
import usergroup.event_edit | ||
|
||
#TestCases have lots of public methods | ||
#pylint: disable=R0904 | ||
|
||
class TestTalkOfferLogin(django.test.TestCase): | ||
"""Before we test anything else, let's see if login actually works""" | ||
fixtures = ['test_admin_user', 'test_existing_user'] | ||
|
||
def test_offer_page(self): | ||
"""Ensure that the offer page loads.""" | ||
self.client.login(username='existing', password='password') | ||
offer_page = self.client.get("/offer/add") | ||
self.assertContains(offer_page, 'input name="consent"') | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters