def test_strikethrough_multiline(self): text = "this is\nthe multiline text" expected = "~~this is\nthe multiline text~~" actual = gfm_utils.strikethrough(text) self.assertEqual(actual, expected)
def test_strikethrough_blank(self): text = " " expected = "~~ ~~" actual = gfm_utils.strikethrough(text) self.assertEqual(actual, expected)
def test_strikethrough_none(self): with self.assertRaises(AssertionError): gfm_utils.strikethrough(None)