def test_make_table_header(self): actual = cliutils.make_table_header("Response Times (sec)", 40) expected = "\n".join( ("+--------------------------------------+", "| Response Times (sec) |",) ) self.assertEqual(expected, actual) actual = cliutils.make_table_header("Response Times (sec)", 39) expected = "\n".join( ("+-------------------------------------+", "| Response Times (sec) |",) ) self.assertEqual(expected, actual)
def test_make_table_header(self): actual = cliutils.make_table_header("Response Times (sec)", 40) expected = "\n".join(( "+--------------------------------------+", "| Response Times (sec) |", )) self.assertEqual(expected, actual) actual = cliutils.make_table_header("Response Times (sec)", 39) expected = "\n".join(( "+-------------------------------------+", "| Response Times (sec) |", )) self.assertEqual(expected, actual)