From 1d5fcc6e0eb050b67ff743b3428ed1de3700fbd5 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 19 Mar 2015 18:05:30 +1300 Subject: Revamp palette specification - Split low-color and high-color specifications in palettes. - Split off light, dark, lowlight and lowdark palettes. Lowlight and lowdark will be the low-color base for most subsequent palettes. - Add a small script that makes test pattern requests to pathod. --- test/test_console_palettes.py | 11 +++++++++++ test/tools/testpatt | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/test_console_palettes.py create mode 100755 test/tools/testpatt (limited to 'test') diff --git a/test/test_console_palettes.py b/test/test_console_palettes.py new file mode 100644 index 00000000..3f8e280a --- /dev/null +++ b/test/test_console_palettes.py @@ -0,0 +1,11 @@ +import os +from nose.plugins.skip import SkipTest +if os.name == "nt": + raise SkipTest("Skipped on Windows.") +import libmproxy.console.palettes as palettes + + +class TestPalette: + def test_helptext(self): + for i in palettes.palettes.values(): + assert i.palette() diff --git a/test/tools/testpatt b/test/tools/testpatt new file mode 100755 index 00000000..3b79e3ee --- /dev/null +++ b/test/tools/testpatt @@ -0,0 +1,9 @@ +#!/bin/bash + +# Generate a test pattern with pathoc +PATHOD=http://localhost:9999 +pathoc localhost:8080 "get:'$PATHOD/p/200:p0,1'" +pathoc localhost:8080 "get:'$PATHOD/p/300:p0,1'" +pathoc localhost:8080 "get:'$PATHOD/p/400:p0,1'" +pathoc localhost:8080 "get:'$PATHOD/p/500:p0,1'" +pathoc localhost:8080 "get:'$PATHOD/p/600:p0,1'" -- cgit v1.2.3