code: def AddSeat(self, seat):
      '''Convenience method to add a seat.
  
      Return the object path of the new seat.
      '''
      seat_path = '/org/freedesktop/login1/seat/' + seat
      if seat_path in mockobject.objects:
          raise dbus.exceptions.DBusException('Seat %s already exists' % seat,
                                              name=MOCK_IFACE + '.SeatExists')
  
      self.AddObject(seat_path,
                     'org.freedesktop.login1.Seat',
                     {
                         'Sessions': dbus.Array([], signature='(so)'),
                         'CanGraphical': False,
                         'CanMultiSession': True,
                         'CanTTY': False,
                         'IdleHint': False,
                         'ActiveSession': ('', dbus.ObjectPath('/')),
                         'Id': seat,
                         'IdleSinceHint': dbus.UInt64(0),
                         'IdleSinceHintMonotonic': dbus.UInt64(0),
                     },
                     [
                         ('ActivateSession', 's', '', ''),
                         ('Terminate', '', '', '')
                     ])
  
      return seat_patf AddSeat(self, seat):
      '''Convenience method to add a seat.
  
      Return the object path of the new seat.
      '''
      seat_path = '/org/freedesktop/login1/seat/' + seat
      if seat_path in mockobject.objects:
          raise dbus.exceptions.DBusException('Seat %s already exists' % seat,
                                              name=MOCK_IFACE + '.SeatExists')
  
      self.AddObject(seat_path,
                     'org.freedesktop.login1.Seat',
                     {
                         'Sessions': dbus.Array([], signature='(so)'),
                         'CanGraphical': False,
                         'CanMultiSession': True,
                         'CanTTY': False,
                         'IdleHint': False,
                         'ActiveSession': ('', dbus.ObjectPath('/')),
                         'Id': seat,
                         'IdleSinceHint': dbus.UInt64(0),
                         'IdleSinceHintMonotonic': dbus.UInt64(0),
                     },
                     [
                         ('ActivateSession', 's', '', ''),
                         ('Terminate', '', '', '')
                     ])
  
      return seat_path
docs: Convenience method to add a seat.
  
      Return the object path of the new seat.