def testTeardownCluster_NoInstance(self):
    with mock.patch('gce_api.GceApi') as mock_gce_api_class:
      # ListInstances() and ListDisks() return empty list.
      mock_gce_api_class.return_value.ListInstances.return_value = []
      mock_gce_api_class.return_value.ListDisks.return_value = []

      GceCluster(argparse.Namespace(
          project='project-hoge', zone='zone-fuga')).TeardownCluster()

      mock_gce_api_class.assert_called_once_with(
          'hadoop_on_compute', mock.ANY, mock.ANY,
          'project-hoge', 'zone-fuga')
      (mock_gce_api_class.return_value.ListInstances.
       assert_called_once_with('name eq "^(hm|hw-\\d+)$"'))
      (mock_gce_api_class.return_value.ListDisks.
       assert_called_once_with('name eq "^(hm|hw-\\d+)(-data)?$"'))
      # Make sure DeleteInstance() is not called.
      self.assertFalse(
          mock_gce_api_class.return_value.DeleteInstance.called)
      # Make sure DeleteDisk() is not called.
      self.assertFalse(
          mock_gce_api_class.return_value.DeleteDisk.called)
Return sequence of transformations from transformation matrix.
dataset/ETHPy150Open GoogleCloudPlatform/solutions-google-compute-engine-cluster-for-hadoop/gce_cluster_test.py/GceClusterTest.testTeardownCluster_NoInstance--crossover with--dataset/ETHPy150Open omangin/multimodal/multimodal/lib/transformations.py/decompose_matrix