diff --git a/src/pvecontrol/test_pvecontrol.py b/src/pvecontrol/test_pvecontrol.py new file mode 100644 index 0000000..10765ea --- /dev/null +++ b/src/pvecontrol/test_pvecontrol.py @@ -0,0 +1,6 @@ +from . import pvecontrol + +def test_filter_keys(): + input = {'test': "toto", 'none': "noninclude"} + filter = ["test"] + assert pvecontrol._filter_keys(input, filter) == {'test': "toto"}