0daec2f2e4ab5feeff8b98714bedfcf2dc0c39fa,tests/python/pants_test/android/tasks/test_zipalign.py,TestZipalign,test_zipalign_binary,#TestZipalign#,27

Before Change


  def test_zipalign_binary(self):
    with self.distribution() as dist:
      with self.android_binary() as android_binary:
        task = self.prepare_task(args=["--test-sdk-path={0}".format(dist)],
                                 build_graph=self.build_graph,
                                 build_file_parser=self.build_file_parser)
        target = android_binary
        self.assertEqual(task.zipalign_binary(target),
                         os.path.join(dist, "build-tools", target.build_tools_version, "zipalign"))

After Change


    task = self.create_task(self.context())
    task.execute()

  def test_zipalign_binary(self):
    with distribution() as dist:
      with self.android_binary() as android_binary:
        self.set_options(sdk_path=dist)
        task = self.create_task(self.context())
        target = android_binary
        self.assertEqual(task.zipalign_binary(target),
                         os.path.join(dist, "build-tools", target.build_tools_version, "zipalign"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: pantsbuild/pants
Commit Name: 0daec2f2e4ab5feeff8b98714bedfcf2dc0c39fa
Time: 2015-03-31
Author: benjyw@gmail.com
File Name: tests/python/pants_test/android/tasks/test_zipalign.py
Class Name: TestZipalign
Method Name: test_zipalign_binary


Project Name: pantsbuild/pants
Commit Name: 0daec2f2e4ab5feeff8b98714bedfcf2dc0c39fa
Time: 2015-03-31
Author: benjyw@gmail.com
File Name: tests/python/pants_test/android/tasks/test_zipalign.py
Class Name: TestZipalign
Method Name: test_render_args


Project Name: pantsbuild/pants
Commit Name: 0daec2f2e4ab5feeff8b98714bedfcf2dc0c39fa
Time: 2015-03-31
Author: benjyw@gmail.com
File Name: tests/python/pants_test/android/tasks/test_zipalign.py
Class Name: TestZipalign
Method Name: test_zipalign_out


Project Name: pantsbuild/pants
Commit Name: 0daec2f2e4ab5feeff8b98714bedfcf2dc0c39fa
Time: 2015-03-31
Author: benjyw@gmail.com
File Name: tests/python/pants_test/android/tasks/test_zipalign.py
Class Name: TestZipalign
Method Name: test_zipalign_binary