def test_no_gettext(self):
     self.assertEqual(extract.search_heredoc_string('testtesttest'), [])
 def test_mixed_gettext_and_plaintext(self):
     self.assertEqual(extract.search_heredoc_string("foo {$_('yo')} bar"), ['yo'])
 def test_multiple_gettext_and_plaintext(self):
     self.assertEqual(extract.search_heredoc_string("{$_('foo')} {$_('yo')} bar"), ['foo', 'yo'])
 def test_with_just_gettext(self):
     self.assertEqual(extract.search_heredoc_string("{$_('yo')}"), ['yo'])