def test_encode_header(self): for p, e in self.HSTRINGS: self.assertTrue(quopri.encodestring(p, header=True) == e)