'Ensure that the given "actual" string ends with "exp_end"'

def assertEndsWith(self, actual, exp_end):

    self.assertTrue(actual.endswith(exp_end), msg=('%r    did    not    end    with    %r' % (actual, exp_end)))
