d97b02c9e437a249f7f8a21207bc4c083bf9408f,tests/python/pants_test/backend/codegen/tasks/test_protobuf_gen.py,ProtobufGenTest,test_not_same_contents,#ProtobufGenTest#,212
Before Change
self.assertTrue(_same_contents(dup1.name, dup2.name))
def test_not_same_contents(self):
with temporary_dir() as workdir:
with open(os.path.join(workdir, "dup1.proto"), "w") as dup1:
dup1.write(dedent("""
package com.twitter.lean;
option java_multiple_files = true;
enum Jake { FOO=1;}
message joe_bob {}
"""))
with open(os.path.join(workdir, "dup2.proto"), "w") as dup2:
dup2.write(dedent("""
package com.twitter.lean;
message joe_bob {}
"""))
self.assertFalse(_same_contents(dup1.name, dup2.name))
def test_protos_extracted_under_build_root(self):
This testcase shows that you can put sources for protos outside the directory where the
BUILD file is defined. This will be the case for .proto files that have been extracted
under .pants.d.
After Change
package com.twitter.lean;
message joe_bob {}
"""))
self.assertFalse(_same_contents(dup1, dup2))
def test_protos_extracted_under_build_root(self):
This testcase shows that you can put sources for protos outside the directory where the
BUILD file is defined. This will be the case for .proto files that have been extracted
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances Project Name: pantsbuild/pants
Commit Name: d97b02c9e437a249f7f8a21207bc4c083bf9408f
Time: 2015-03-04
Author: zundel@squareup.com
File Name: tests/python/pants_test/backend/codegen/tasks/test_protobuf_gen.py
Class Name: ProtobufGenTest
Method Name: test_not_same_contents
Project Name: pantsbuild/pants
Commit Name: df75d99aa353ecf4dd69185232041c952a3f72b7
Time: 2014-12-03
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/graph/test_build_graph.py
Class Name: BuildGraphTest
Method Name: test_transitive_closure_address
Project Name: pantsbuild/pants
Commit Name: d97b02c9e437a249f7f8a21207bc4c083bf9408f
Time: 2015-03-04
Author: zundel@squareup.com
File Name: tests/python/pants_test/backend/codegen/tasks/test_protobuf_gen.py
Class Name: ProtobufGenTest
Method Name: test_not_same_contents
Project Name: pantsbuild/pants
Commit Name: d97b02c9e437a249f7f8a21207bc4c083bf9408f
Time: 2015-03-04
Author: zundel@squareup.com
File Name: tests/python/pants_test/backend/codegen/tasks/test_protobuf_gen.py
Class Name: ProtobufGenTest
Method Name: test_same_contents