94d06ad77779c7d514b81e63d37c26ea284c0cba,tests/python/pants_test/util/test_objects.py,TypedDatatypeTest,test_mixin_type_construction,#TypedDatatypeTest#,583
Before Change
def compare_str(unicode_type_name):
expected_msg = "TypedWithMixin(val<Exactly({})>= asdf )".format(unicode_type_name)
self.assertEqual(str(obj_with_mixin), expected_msg)
if PY2:
compare_str("unicode")
compare_repr(include_unicode=True)
else:
compare_str("str")
compare_repr()
self.assertEqual(obj_with_mixin.as_str(), " asdf ")
self.assertEqual(obj_with_mixin.stripped(), "asdf")
def test_instance_with_collection_construction_str_repr(self):
After Change
def test_mixin_type_construction(self):
obj_with_mixin = TypedWithMixin(" asdf ")
self.assertEqual(repr(obj_with_mixin), "TypedWithMixin(val=" asdf ")")
self.assertEqual(str(obj_with_mixin), "TypedWithMixin(val<Exactly(str)>= asdf )")
self.assertEqual(obj_with_mixin.as_str(), " asdf ")
self.assertEqual(obj_with_mixin.stripped(), "asdf")
def test_instance_with_collection_construction_str_repr(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pantsbuild/pants
Commit Name: 94d06ad77779c7d514b81e63d37c26ea284c0cba
Time: 2019-06-27
Author: ericarellano@me.com
File Name: tests/python/pants_test/util/test_objects.py
Class Name: TypedDatatypeTest
Method Name: test_mixin_type_construction
Project Name: pantsbuild/pants
Commit Name: e7cc57579f32fa844bc0b076628aacc0580a306c
Time: 2018-07-25
Author: ericarellano@me.com
File Name: tests/python/pants_test/util/test_objects.py
Class Name: TypedDatatypeTest
Method Name: test_class_construction_errors
Project Name: pantsbuild/pants
Commit Name: 94d06ad77779c7d514b81e63d37c26ea284c0cba
Time: 2019-06-27
Author: ericarellano@me.com
File Name: tests/python/pants_test/util/test_objects.py
Class Name: TypedDatatypeTest
Method Name: test_instance_construction_by_repr