def test_str_repr(self): mcs = MCS(self.losses, 0.05) expected = 'MCS(size: 0.05, bootstrap: ' + str(mcs.bootstrap) + ')' assert_equal(str(mcs), expected) expected = expected[:-1] + ', ID: ' + hex(id(mcs)) + ')' assert_equal(mcs.__repr__(), expected) expected = ('<strong>MCS</strong>(' + '<strong>size</strong>: 0.05, ' + '<strong>bootstrap</strong>: ' + str(mcs.bootstrap) + ', ' + '<strong>ID</strong>: ' + hex(id(mcs)) + ')') assert_equal(mcs._repr_html_(), expected)
def test_str_repr(self): mcs = MCS(self.losses, 0.05) expected = "MCS(size: 0.05, bootstrap: " + str(mcs.bootstrap) + ")" assert_equal(str(mcs), expected) expected = expected[:-1] + ", ID: " + hex(id(mcs)) + ")" assert_equal(mcs.__repr__(), expected) expected = ("<strong>MCS</strong>(" + "<strong>size</strong>: 0.05, " + "<strong>bootstrap</strong>: " + str(mcs.bootstrap) + ", " + "<strong>ID</strong>: " + hex(id(mcs)) + ")") assert_equal(mcs._repr_html_(), expected)
def test_str_repr(self): mcs = MCS(self.losses, 0.05) expected = 'MCS(size: 0.05, bootstrap: ' + str(mcs.bootstrap) + ')' assert_equal(str(mcs), expected) expected = expected[:-1] + ', ID: ' + hex(id(mcs)) + ')' assert_equal(mcs.__repr__(), expected) expected = ('<strong>MCS</strong>(' + '<strong>size</strong>: 0.05, ' + '<strong>bootstrap</strong>: ' + str(mcs.bootstrap) + ', ' + '<strong>ID</strong>: ' + hex(id(mcs)) + ')') assert_equal(mcs._repr_html_(), expected)