diff options
| author | Robert McQueen <robot101@debian.org> | 2005-11-14 02:53:30 +0000 | 
|---|---|---|
| committer | Robert McQueen <robot101@debian.org> | 2005-11-14 02:53:30 +0000 | 
| commit | 7b9236f2aef06b203acc019592cd102672427633 (patch) | |
| tree | 7370bbcddbdefee3d24338b0142c3fcb8e7b0b1e /test/python/test-client.py | |
| parent | 45ef0fbc4f0f5441425484be3662b2c44d2554b3 (diff) | |
2005-11-14  Robert McQueen  <robot101@debian.org>
	* python/decorators.py, python/service.py: Add a new argument to the
	dbus.service.method decorator called sender_keyword, which if set,
	specifies the name of an argument which will be provided the bus
	name of the method caller.
	* test/python/test-client.py, test/python/test-service.py: Add a
	method and test to check the sender_keyword functionality.
Diffstat (limited to 'test/python/test-client.py')
| -rwxr-xr-x | test/python/test-client.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/test/python/test-client.py b/test/python/test-client.py index e207d491..ab703502 100755 --- a/test/python/test-client.py +++ b/test/python/test-client.py @@ -218,6 +218,11 @@ class TestDBusBindings(unittest.TestCase):              self.assert_(private_type != private_func, '%s should not equal %s' % (private_type, private_func))              self.assert_(private_func != private_cls, '%s should not equal %s' % (private_func, private_cls)) +    def testSenderName(self): +        print '\n******** Testing sender name keyword ********' +        myself = self.iface.WhoAmI() +        print "I am", myself +      def testBusNameCreation(self):          print '\n******** Testing BusName creation ********'          test = [('org.freedesktop.DBus.Python.TestName', True), | 
