[pytango] 95/122: Add test_device_proxy_dir_method

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to tag v9.2.1
in repository pytango.

commit e1b6fdc73edb34124a30bfa218c7ddb972f0c417
Author: Vincent Michel <vincent.michel at maxlab.lu.se>
Date:   Wed Dec 14 16:53:30 2016 +0100

    Add test_device_proxy_dir_method
---
 tests/test_client.py | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/tests/test_client.py b/tests/test_client.py
index 261918c..3d7b07a 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -219,3 +219,25 @@ def test_attribute_list_query_ex(tango_test):
     attrs = tango_test.attribute_list_query_ex()
     assert all(isinstance(a, AttributeInfoEx) for a in attrs)
     assert set(a.name for a in attrs) == set(ATTRIBUTES)
+
+
+def test_device_proxy_dir_method(tango_test):
+    lst = dir(tango_test)
+    attrs = tango_test.get_attribute_list()
+    cmds = tango_test.get_command_list()
+    pipes = tango_test.get_pipe_list()
+    methods = dir(type(tango_test))
+    internals = tango_test.__dict__.keys()
+    # Check attributes
+    assert set(attrs) < set(lst)
+    assert set(map(str.lower, attrs)) < set(lst)
+    # Check commands
+    assert set(cmds) < set(lst)
+    assert set(map(str.lower, cmds)) < set(lst)
+    # Check pipes
+    assert set(pipes) < set(lst)
+    assert set(map(str.lower, pipes)) < set(lst)
+    # Check internals
+    assert set(methods) <= set(lst)
+    # Check internals
+    assert set(internals) <= set(lst)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git



More information about the debian-science-commits mailing list