def _m_isenabled():
 if HAS_UPSTART:
  return MagicMock(return_value=True)
 else:
  return MagicMock(return_value=False)

def _m_isenabled ( ) : if HAS_UPSTART : return MagicMock ( return_value = True ) else : return MagicMock ( return_value = False )
mock _upstart_is_enabled method .