def test_box_substitute(): options = ConsoleOptions( ConsoleDimensions(80, 25), legacy_windows=True, min_width=1, max_width=100, is_terminal=True, encoding="utf-8", ) assert HEAVY.substitute(options) == SQUARE options.legacy_windows = False assert HEAVY.substitute(options) == HEAVY options.encoding = "ascii" assert HEAVY.substitute(options) == ASCII
def test_get_bottom(): bottom = HEAVY.get_bottom(widths=[1, 2, 3]) assert bottom == "┗━┻━━┻━━━┛"
def test_get_top(): top = HEAVY.get_top(widths=[1, 2]) assert top == "┏━┳━━┓"