def test_convert_wrap_on_one_line(self): lines = ["<WRAP>one line wrap</WRAP>"] self.assertEqual(convert_wrap(lines), ["> one line wrap"])
def test_convert_wrap_on_separate_line(self): lines = ["<WRAP>", "two line wrap", "</WRAP>"] self.assertEqual(convert_wrap(lines), ["> ", "> two line wrap", ""])
def test_convert_simple_alert_wrap_on_separate_lines(self): lines = ["", "<WRAP alert>", "</WRAP>"] self.assertEqual(convert_wrap(lines), ["", "> ", "{.is-danger}"])
def test_convert_simple_wrap_on_separate_lines(self): lines = ["", "<WRAP>", "</WRAP>"] self.assertEqual(convert_wrap(lines), ["", "> ", ""])
def test_converts_info_wrap_to_is_info(self): lines = ["<WRAP info>", "</WRAP>"] self.assertEqual(convert_wrap(lines), ["> ", IS_INFO])
def test_convert_wrap_can_pass_through(self): lines = ["no WRAP here"] self.assertEqual(convert_wrap(lines), ["no WRAP here"])