@@ -41,6 +41,7 @@ def test_selected_variation_depends_on_user_id(self):
4141 response = self .client .get ('/' )
4242 self .assertEqual (response .status_code , 200 )
4343 self .assertContains (response , '<p>Welcome to our site!</p>' )
44+ self .assertContains (response , '<a href="http://boring.example.com/">a boring link</a>' )
4445
4546 session .clear ()
4647 session ['experiment_user_id' ] = '33333333-3333-3333-3333-333333333333'
@@ -50,6 +51,7 @@ def test_selected_variation_depends_on_user_id(self):
5051 response = self .client .get ('/' )
5152 self .assertEqual (response .status_code , 200 )
5253 self .assertContains (response , '<p>Welcome to our site! It's lovely to meet you.</p>' )
54+ self .assertContains (response , '<a href="http://lovely.example.com/">a lovely link</a>' )
5355
5456 def test_participant_is_logged (self ):
5557 # initially there should be no experiment history
@@ -197,6 +199,7 @@ def test_draft_status(self):
197199 # but should get the standard homepage when it's draft
198200 self .assertEqual (response .status_code , 200 )
199201 self .assertContains (response , '<p>Welcome to our site!</p>' )
202+ self .assertContains (response , '<a href="http://boring.example.com/">a boring link</a>' )
200203
201204 # no participant record should be logged
202205 self .assertEqual (ExperimentHistory .objects .filter (experiment = self .experiment ).count (), 0 )
0 commit comments