def test_raises_exception_for_undefined_test(self): with pytest.raises(ConfigurationError): get_active_tests({'activeTests': 'undefined_test'}) with pytest.raises(ConfigurationError): get_active_tests({'activeTests': ' undefined_test '}) with pytest.raises(ConfigurationError): get_active_tests({'activeTests': 'undef_test:undef_test2:undef_test3'})