03bf338ef069b2dbd7efcd09d02386b3191615c7,tests/linux_virtual_machine_test.py,TestConfigureVMKernel,testSysfs,#TestConfigureVMKernel#,81

Before Change


    with mock.patch.object(vm, "RemoteCommand") as remote_command:
      vm.ConfigureVMKernel()

    self.assertEqual(remote_command.call_args_list,
                     [mock.call("echo "always" | sudo tee "
                                "/sys/kernel/mm/transparent_hugepage/enabled")])


if __name__ == "__main__":
  unittest.main()

After Change


                 [])

  def testSysfs(self):
    self.runTest({},
                 {"kernel": {"mm": {"transparent_hugepage":
                                    {"enabled": "always"}}}},
                 [],
                 [mock.call("echo "always" | sudo tee "
                            "/sys/kernel/mm/transparent_hugepage/enabled")])


if __name__ == "__main__":
  unittest.main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 03bf338ef069b2dbd7efcd09d02386b3191615c7
Time: 2016-09-12
Author: nlavine@google.com
File Name: tests/linux_virtual_machine_test.py
Class Name: TestConfigureVMKernel
Method Name: testSysfs


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 03bf338ef069b2dbd7efcd09d02386b3191615c7
Time: 2016-09-12
Author: nlavine@google.com
File Name: tests/linux_virtual_machine_test.py
Class Name: TestConfigureVMKernel
Method Name: testConvertToString


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 03bf338ef069b2dbd7efcd09d02386b3191615c7
Time: 2016-09-12
Author: nlavine@google.com
File Name: tests/linux_virtual_machine_test.py
Class Name: TestConfigureVMKernel
Method Name: testMultipleFiles


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 03bf338ef069b2dbd7efcd09d02386b3191615c7
Time: 2016-09-12
Author: nlavine@google.com
File Name: tests/linux_virtual_machine_test.py
Class Name: TestConfigureVMKernel
Method Name: testConfigureVMKernel