@@ -26,7 +26,7 @@ def test_search(self):
2626 response = self .client .post (url ,post_data ,follow = True )
2727 #assert False, response.content
2828 self .assertEqual (response .status_code , 200 )
29- self .failUnless (group .acronym in response .content )
29+ self .assertTrue (group .acronym in response .content )
3030
3131 # ------- Test Add -------- #
3232 def test_add_button (self ):
@@ -47,7 +47,7 @@ def test_add_group_invalid(self):
4747 self .client .login (username = "secretary" , password = "secretary+password" )
4848 response = self .client .post (url ,post_data )
4949 self .assertEqual (response .status_code , 200 )
50- self .failUnless ('This field is required' in response .content )
50+ self .assertTrue ('This field is required' in response .content )
5151
5252 def test_add_group_dupe (self ):
5353 make_test_data ()
@@ -66,7 +66,7 @@ def test_add_group_dupe(self):
6666 response = self .client .post (url ,post_data )
6767 #print response.content
6868 self .assertEqual (response .status_code , 200 )
69- self .failUnless ('Group with this Acronym already exists' in response .content )
69+ self .assertTrue ('Group with this Acronym already exists' in response .content )
7070
7171 def test_add_group_success (self ):
7272 make_test_data ()
@@ -113,7 +113,7 @@ def test_edit_valid(self):
113113 self .client .login (username = "secretary" , password = "secretary+password" )
114114 response = self .client .post (url ,post_data ,follow = True )
115115 self .assertRedirects (response , target )
116- self .failUnless ('changed successfully' in response .content )
116+ self .assertTrue ('changed successfully' in response .content )
117117
118118 def test_edit_non_wg_group (self ):
119119 make_test_data ()
@@ -133,7 +133,7 @@ def test_edit_non_wg_group(self):
133133 self .client .login (username = "secretary" , password = "secretary+password" )
134134 response = self .client .post (url ,post_data ,follow = True )
135135 self .assertRedirects (response , target )
136- self .failUnless ('changed successfully' in response .content )
136+ self .assertTrue ('changed successfully' in response .content )
137137
138138 # ------- Test People -------- #
139139 def test_people_delete (self ):
@@ -145,7 +145,7 @@ def test_people_delete(self):
145145 self .client .login (username = "secretary" , password = "secretary+password" )
146146 response = self .client .get (url ,follow = True )
147147 self .assertRedirects (response , target )
148- self .failUnless ('deleted successfully' in response .content )
148+ self .assertTrue ('deleted successfully' in response .content )
149149
150150 def test_people_add (self ):
151151 make_test_data ()
@@ -160,4 +160,4 @@ def test_people_add(self):
160160 self .client .login (username = "secretary" , password = "secretary+password" )
161161 response = self .client .post (url ,post_data ,follow = True )
162162 self .assertRedirects (response , url )
163- self .failUnless ('added successfully' in response .content )
163+ self .assertTrue ('added successfully' in response .content )
0 commit comments