diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-05-27 19:28:31 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-05-27 19:28:31 +0200 |
commit | 70257438044b793a42adce791037b9b86ae35d9b (patch) | |
tree | e38f46effcfe54cb3346b985c1ca41c61b8da103 /gitlab/tests/test_mixins.py | |
parent | 590ea0da7e5617c42e705c62370d6e94ff46ea74 (diff) | |
download | gitlab-70257438044b793a42adce791037b9b86ae35d9b.tar.gz |
Implement user_agent_detail for snippets
Add a new UserAgentDetail mixin to avoid code duplication.
Diffstat (limited to 'gitlab/tests/test_mixins.py')
-rw-r--r-- | gitlab/tests/test_mixins.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gitlab/tests/test_mixins.py b/gitlab/tests/test_mixins.py index c737953..b3c2e81 100644 --- a/gitlab/tests/test_mixins.py +++ b/gitlab/tests/test_mixins.py @@ -73,6 +73,13 @@ class TestObjectMixinsAttributes(unittest.TestCase): obj = O() self.assertTrue(hasattr(obj, 'set')) + def test_user_agent_detail_mixin(self): + class O(UserAgentDetailMixin): + pass + + obj = O() + self.assertTrue(hasattr(obj, 'user_agent_detail')) + class TestMetaMixins(unittest.TestCase): def test_retrieve_mixin(self): |