~alecu/ubuntuone-control-panel/the-outer-limits

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/integrationtests/test_dbus_service.py

  • Committer: Natalia B. Bidart
  • Date: 2010-12-16 20:56:57 UTC
  • mto: (35.1.1 remove-devices)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: natalia.bidart@canonical.com-20101216205657-bejax1q13eh8cnvv
Change device errors are now handled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
449
449
 
450
450
        """
451
451
 
452
 
        def got_error_signal(error_dict):
 
452
        def got_error_signal(*a):
453
453
            """The error signal was received."""
 
454
            if len(a) == 1:
 
455
                error_dict = a[0]
 
456
            else:
 
457
                an_id, error_dict = a
 
458
                self.assertEqual(an_id, args[0])
 
459
 
454
460
            self.assertEqual(error_dict[dbus_service.ERROR_TYPE],
455
461
                             'AssertionError')
456
462
            self.deferred.callback("success")