@@ -76,9 +76,9 @@ def test_doc_detail_draft_with_downref(self):
7676 self .client .login (username = "secretary" , password = "secretary+password" )
7777 response = self .client .get (url )
7878 self .assertEqual (response .status_code , 200 )
79- self .assertTrue ( "Has downref: Yes" in response . content )
80- self .assertTrue ( "Add rfc6666" in response . content )
81- self .assertTrue ( "to downref registry" in response . content )
79+ self .assertContains ( response , "Has downref: Yes" )
80+ self .assertContains ( response , "Add rfc6666" )
81+ self .assertContains ( response , "to downref registry" )
8282
8383 def test_doc_detail_draft_invalid (self ):
8484 '''Test using a document not on telechat agenda'''
@@ -88,7 +88,7 @@ def test_doc_detail_draft_invalid(self):
8888 self .client .login (username = "secretary" , password = "secretary+password" )
8989 response = self .client .get (url , follow = True )
9090 self .assertRedirects (response , reverse ('ietf.secr.telechat.views.doc' , kwargs = {'date' :date }))
91- self .assertTrue ( 'not on the Telechat agenda' in response . content )
91+ self .assertContains ( response , 'not on the Telechat agenda' )
9292
9393 def test_doc_detail_charter (self ):
9494 by = Person .objects .get (name = "(System)" )
0 commit comments