From cb0d2f2efd87e964d7fd9326c6e11eca6387a245 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Mon, 24 Oct 2022 20:16:46 +0100 Subject: [PATCH] Add a test for turning a tuple into a binding --- tests/test_binding.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_binding.py b/tests/test_binding.py index ccd00c007..c35e43c9e 100644 --- a/tests/test_binding.py +++ b/tests/test_binding.py @@ -35,3 +35,6 @@ def test_bad_binding_tuple(): _ = Bindings((("a", "action"),)) with pytest.raises(BindingError): _ = Bindings((("a", "action", "description","too much"),)) + +def test_binding_from_tuples(): + assert Bindings((( BINDING2.key, BINDING2.action, BINDING2.description),)).get_key("c") == BINDING2