def test_parameterized_instance(self):
        page_string = self.pager(self.TestClass())
        # Remove params automatic numbered names
        page_string = re.sub('TestClass(\d+)', 'TestClass', page_string)
        ref_string = re.sub('TestClass(\d+)', 'TestClass', test2_repr)

        try:
            self.assertEqual(page_string, ref_string)
        except Exception as e:
            sys.stderr.write(page_string)  # Coloured output
            sys.stderr.write("\nRAW STRING:\n\n%r\n\n" % page_string)
            raise e
dataset/ETHPy150Open ioam/param/tests/testipythonmagic.py/TestParamPager.test_parameterized_instance/original