'Assert that C{s} end with a particular C{suffix}.
@param s: The input string.
@type s: C{str}
@param suffix: The string that C{s} should end with.
@type suffix: C{str}'

def assertEndsWith(self, s, suffix):

    self.assertTrue(s.endswith(suffix), ('%r    is    not    the    end    of    %r' % (suffix, s)))
