'C{id} is used to print the ID of the object in case of an error.
L{safe_repr} includes a traceback after a newline, so we only check
against the first line of the repr.'

def test_brokenReprIncludesID(self):

    class X(BTBase, ):
        breakRepr = True
    xRepr = reflect.safe_repr(X)
    xReprExpected = ('<BrokenType    instance    at    0x%x    with    repr    error:' % (id(X),))
    self.assertEqual(xReprExpected, xRepr.split('\n')[0])
