diff options
author | Thomas Nixon <tom@tomn.co.uk> | 2018-02-19 23:14:45 +0000 |
---|---|---|
committer | Thomas Nixon <tom@tomn.co.uk> | 2018-02-19 23:15:29 +0000 |
commit | 021735bdcba6763a5ed42cfce305e0ca33714db4 (patch) | |
tree | 4b395105eb7fbe7cd6322224bc06a2198b5984eb /tests/utilities.py | |
parent | dae920e245ab9a539907740f41fac4db3028abe3 (diff) |
Move mock ui creation to function.
Diffstat (limited to 'tests/utilities.py')
-rw-r--r-- | tests/utilities.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/utilities.py b/tests/utilities.py index 8123afd8..ea4e700c 100644 --- a/tests/utilities.py +++ b/tests/utilities.py @@ -173,6 +173,12 @@ def make_key(revoked=False, expired=False, invalid=False, can_encrypt=True, return mock_key +def make_ui(**kwargs): + ui = mock.Mock(**kwargs) + + return ui + + def expected_failure(func): """For marking expected failures for twisted.trial based unit tests. |