def METHOD_NAME(self, output_chain):
    msg = (
        "In chain {}, left end of first domino ({}) and "
        "right end of last domino ({}) must match"
    )
    msg = msg.format(output_chain, output_chain[0], output_chain[-1])
    self.assertEqual(output_chain[0][0], output_chain[-1][1], msg)