def test_endswith(self, size):
        SUBSTR = ' abc def ghi'
        s = '-' * size + SUBSTR
        self.failUnless(s.endswith(SUBSTR))
        self.failUnless(s.endswith(s))
        s2 = '...' + s
        self.failUnless(s2.endswith(s))
        self.failIf(s.endswith('a' + SUBSTR))
        self.failIf(SUBSTR.endswith(s))