def test_strip_comment(self): a = "plastikowe fiolki " b = a + "! zakwitly ! " x = OboIterator(None) self.assertEqual(a, x._strip_comment(b))