def test_string_with_broken_question_references(self):
     assert question_references(
         'Here’s ]][[ a [[string full of ] misused square brackets]',
         self.get_question_mock
     ) == 'Here’s ]][[ a [[string full of ] misused square brackets]'
 def test_string_with_no_question_references(self):
     assert question_references(
         'What was the name of your first pet?',
         self.get_question_mock
     ) == 'What was the name of your first pet?'
 def test_string_with_with_question_references(self):
     assert question_references(
         'Please see question [[otherQuestion]] for more info',
         self.get_question_mock
     ) == 'Please see question 19 for more info'
 def test_string_with_broken_question_references(self):
     assert question_references(
         'Here’s ]][[ a [[string full of ] misused square brackets]',
         self.get_question_mock
     ) == 'Here’s ]][[ a [[string full of ] misused square brackets]'
 def test_string_with_no_question_references(self):
     assert question_references(
         'What was the name of your first pet?',
         self.get_question_mock) == 'What was the name of your first pet?'
 def test_string_with_with_question_references(self):
     assert question_references(
         'Please see question [[otherQuestion]] for more info',
         self.get_question_mock) == 'Please see question 19 for more info'