~ubuntu-branches/ubuntu/precise/telepathy-mission-control-5/precise

« back to all changes in this revision

Viewing changes to test/twisted/mctest.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonny Lamb
  • Date: 2011-01-17 15:55:24 UTC
  • mto: (0.12.1 upstream) (7.1.4 maverick)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20110117155524-l8ex8kr7zhs8nnm6
Tags: upstream-5.7.1
ImportĀ upstreamĀ versionĀ 5.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
602
602
            observe=[], approve=[], handle=[],
603
603
            cap_tokens=[], bypass_approval=False, wants_recovery=False,
604
604
            request_notification=True, implement_get_interfaces=True,
605
 
            is_handler=None):
 
605
            is_handler=None, bypass_observers=False):
606
606
        self.q = q
607
607
        self.bus = bus
608
608
        self.bus_name = '.'.join([cs.tp_name_prefix, 'Client', clientname])
612
612
        self.approve = aasv(approve)
613
613
        self.handle = aasv(handle)
614
614
        self.bypass_approval = bool(bypass_approval)
 
615
        self.bypass_observers = bool(bypass_observers)
615
616
        self.wants_recovery = bool(wants_recovery)
616
617
        self.request_notification = bool(request_notification)
617
618
        self.handled_channels = dbus.Array([], signature='o')
725
726
        self.q.dbus_return(e.message, {
726
727
            'HandlerChannelFilter': self.handle,
727
728
            'BypassApproval': self.bypass_approval,
 
729
            'BypassObservers': self.bypass_observers,
728
730
            'HandledChannels': self.handled_channels,
729
731
            'Capabilities': self.cap_tokens,
730
732
            },
748
750
        self.q.dbus_return(e.message, self.bypass_approval, signature='v',
749
751
                bus=self.bus)
750
752
 
 
753
    def Get_BypassApproval(self, e):
 
754
        assert self.handle
 
755
        self.q.dbus_return(e.message, self.bypass_observers, signature='v',
 
756
                bus=self.bus)
 
757
 
751
758
    def Get_Recover(self, e):
752
759
        assert self.handle
753
760
        self.q.dbus_return(e.message, self.recover, signature='v',
843
850
            interface=cs.tp_name_prefix + '.ConnectionManager',
844
851
            handled=False)
845
852
 
846
 
    conn = SimulatedConnection(q, bus, 'fakecm', 'fakeprotocol', '_',
 
853
    conn = SimulatedConnection(q, bus, 'fakecm', 'fakeprotocol',
 
854
                               account.object_path.split('/')[-1],
847
855
            'myself', has_requests=has_requests, has_presence=has_presence,
848
856
            has_aliasing=has_aliasing, has_avatars=has_avatars,
849
857
            avatars_persist=avatars_persist, extra_interfaces=extra_interfaces,