From 9c42d87e7d37aff83b7ffa1fa6ed27a664375bb5 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 20 Feb 2018 11:18:17 +0100 Subject: [PATCH] Add missing configutils test --- tests/unit/config/test_configutils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/config/test_configutils.py b/tests/unit/config/test_configutils.py index 29305c6ed..af90b760c 100644 --- a/tests/unit/config/test_configutils.py +++ b/tests/unit/config/test_configutils.py @@ -169,6 +169,10 @@ def test_get_matching_pattern(values, pattern): assert values.get_for_pattern(pattern, fallback=False) == 'example value' +def test_get_pattern_none(values, pattern): + assert values.get_for_pattern(None, fallback=False) == 'global value' + + def test_get_unset_pattern(empty_values, pattern): value = empty_values.get_for_pattern(pattern, fallback=False) assert value is configutils.UNSET