51e7be5040ecf2ea66dea07d0911f67fde0c37f4,tests/aws_test.py,AwsVirtualMachineExistsTestCase,setUp,#AwsVirtualMachineExistsTestCase#,87

Before Change



  def setUp(self):
    self.p = mock.patch("perfkitbenchmarker.aws.util.IssueRetryableCommand")
    self.p.start()
    self.vm = aws_virtual_machine.AwsVirtualMachine(
        virtual_machine.BaseVirtualMachineSpec(
            None, "us-east-1a", "c3.large", None, None))
    self.vm.id = "i-foo"

After Change


    for module in ("perfkitbenchmarker.virtual_machine",
                   "perfkitbenchmarker.vm_util"):
      p = mock.patch("{0}.FLAGS".format(module))
      mock_flags = p.start()
      mock_flags.run_uri = "aaaaaa"
      self.addCleanup(p.stop)
    p = mock.patch("perfkitbenchmarker.aws.util.IssueRetryableCommand")
    p.start()
    self.addCleanup(p.stop)
    self.vm = aws_virtual_machine.AwsVirtualMachine(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 51e7be5040ecf2ea66dea07d0911f67fde0c37f4
Time: 2015-06-23
Author: connormccoy@google.com
File Name: tests/aws_test.py
Class Name: AwsVirtualMachineExistsTestCase
Method Name: setUp


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 51e7be5040ecf2ea66dea07d0911f67fde0c37f4
Time: 2015-06-23
Author: connormccoy@google.com
File Name: tests/aws_test.py
Class Name: AwsVirtualMachineExistsTestCase
Method Name: setUp


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 51e7be5040ecf2ea66dea07d0911f67fde0c37f4
Time: 2015-06-23
Author: connormccoy@google.com
File Name: tests/aws_test.py
Class Name: AwsVolumeExistsTestCase
Method Name: setUp


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 51e7be5040ecf2ea66dea07d0911f67fde0c37f4
Time: 2015-06-23
Author: connormccoy@google.com
File Name: tests/aws_test.py
Class Name: AwsVpcExistsTestCase
Method Name: setUp