'Verifies that last published and last saved messages respectively contain the given strings.'

def _verify_last_published_and_saved(self, unit, expected_published_prefix, expected_saved_prefix):

    self.assertIn(expected_published_prefix, unit.last_published_text)
    self.assertIn(expected_saved_prefix, unit.last_saved_text)
