def test_88_colors(server): myserver = Server(colors=88) assert myserver.colors == 88 proc = myserver.cmd('list-servers') assert '-8' in proc.cmd assert '-2' not in proc.cmd
def test_256_colors(server): myserver = Server(colors=256) assert myserver.colors == 256 proc = myserver.cmd('list-servers') assert '-2' in proc.cmd assert '-8' not in proc.cmd
def test_88_colors(server): myserver = Server(colors=88) assert myserver.colors == 88 proc = myserver.cmd("list-sessions") assert "-8" in proc.cmd assert "-2" not in proc.cmd
def test_256_colors(server): myserver = Server(colors=256) assert myserver.colors == 256 print(myserver.colors) proc = myserver.cmd("list-sessions") print("list-sessions", proc) assert "-2" in proc.cmd assert "-8" not in proc.cmd