code: def _check_device_failover_status(self, device, status):
          '''Determine if a device has a specific failover status.
  
          :param status: str -- status to check against
          :returns: bool -- True is it has status, False otherwise
          '''
  
          sync_status = device.tm.cm.sync_status
          sync_status.refresh()
          current_status = (sync_status.entries[self.sync_status_entry]
                            ['nestedStats']['entries']['status']
                            ['description'])
          if status == current_status:
              return True
          return Falsf _check_device_failover_status(self, device, status):
          '''Determine if a device has a specific failover status.
  
          :param status: str -- status to check against
          :returns: bool -- True is it has status, False otherwise
          '''
  
          sync_status = device.tm.cm.sync_status
          sync_status.refresh()
          current_status = (sync_status.entries[self.sync_status_entry]
                            ['nestedStats']['entries']['status']
                            ['description'])
          if status == current_status:
              return True
          return False
docs: Determine if a device has a specific failover status.
  
          :param status: str -- status to check against
          :returns: bool -- True is it has status, False otherwise