'assertEqual for splits, particularly ignoring the presence of
a trailing newline on the content.'

def assertEqualSplits(self, a, b):

    mangle = (lambda split: [(x[0], x[1], x[2], x[3].rstrip()) for x in split])
    self.assertEqual(mangle(a), mangle(b))
