import unittest class AssertEqualTest(unittest.TestCase): def test_nonewline(self): self.assertEqual("abc", "abd") def test_newline_1(self): self.assertEqual("\n abc", "\n abd") def test_newline_2(self): self.assertEqual("\nabc", "\nabd") if __name__ =='__main__': unittest.main()