def test_save_queues_to_db(self):
    flexmock(file_io) \
       .should_receive("read").and_return(sample_queue_yaml2)
    flexmock(file_io) \
       .should_receive("write").and_return(None)
    flexmock(file_io) \
       .should_receive("mkdir").and_return(None)
    flexmock(file_io) \
       .should_receive('exists').and_return(True)
    flexmock(datastore).should_receive("Put").\
         and_return()
    tqc = TaskQueueConfig(TaskQueueConfig.RABBITMQ, 
                          'myapp')
    try:
      queue_info = tqc.save_queues_to_db()
      raise
    except __HOLE__:
      pass
    queue_info = tqc.load_queues_from_file('app_id')
    queue_info = tqc.save_queues_to_db()
dataset/ETHPy150Open AppScale/appscale/AppTaskQueue/test/unit/test_tq_config.py/TestTaskQueueConfig.test_save_queues_to_db