forked from ubccr/coldfront
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'google_forms' into develop
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,12 @@ def setUp(self): | |
name='Active') | ||
|
||
def test_is_renewal_survey_completed_returns_false(self): | ||
""" Test that when is_renewal_survey_completed returns False, the | ||
correct ValidationError is raised. """ | ||
|
||
# With the dummy backend, is_renewal_survey_completed returns whether | ||
# the PI username is less than 5 characters. This username is thus | ||
# greater than 5 characters. | ||
user = User.objects.create( | ||
email='[email protected]', | ||
first_name='Test', | ||
|
@@ -62,6 +68,12 @@ def test_is_renewal_survey_completed_returns_false(self): | |
str(form.errors)) | ||
|
||
def test_is_renewal_survey_completed_returns_true(self): | ||
""" Test that when is_renewal_survey_completed returns True, the form | ||
is valid. """ | ||
|
||
# With the dummy backend, is_renewal_survey_completed returns whether | ||
# the PI username is less than 5 characters. This username is thus | ||
# less than 5 characters. | ||
user = User.objects.create( | ||
email='[email protected]', | ||
first_name='Test', | ||
|