From 91dbf844ad923e3c4bca1252dd104d8fc8ce5475 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Mon, 16 Oct 2023 21:37:27 +0100 Subject: New upstream version 20231016 --- tests/test_features.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_features.py (limited to 'tests/test_features.py') diff --git a/tests/test_features.py b/tests/test_features.py new file mode 100644 index 0000000..a0aa3df --- /dev/null +++ b/tests/test_features.py @@ -0,0 +1,14 @@ +from unittest import mock + +from tests import base + + +class TestCaseFeatures(base.DriverTest): + def test_prompts(self): + self.use_patch(mock.patch('builtins._', create=True, + side_effect=lambda s: s)) + prompts = self.radio.get_prompts() + for p in ('info', 'experimental', 'pre_download', 'pre_upload'): + prompt = getattr(prompts, p) + if prompt is not None: + self.assertIsInstance(prompt, str) -- cgit v1.2.3