@@ -81,7 +81,7 @@ def test_a(self):
8181class TestDiffLevel :
8282 def setup_class (cls ):
8383 # Test data
84- cls .custom1 = CustomClass (a = 'very long text here' , b = 37 )
84+ cls .custom1 = CustomClass (a = 'very long text here, much longer than you can ever imagine. The longest text here. ' , b = 37 )
8585 cls .custom2 = CustomClass (a = 313 , b = 37 )
8686 cls .t1 = {42 : 'answer' , 'vegan' : 'for life' , 1337 : cls .custom1 }
8787 cls .t2 = {
@@ -257,7 +257,7 @@ def test_repr_long(self):
257257 item_repr = repr (self .lowest )
258258 finally :
259259 self .lowest .verbose_level = level
260- assert item_repr == " <root[1337].a t1:' very long t ...' , t2:313>"
260+ assert item_repr == ' <root[1337].a t1:" very long text here, much lon ...." , t2:313>'
261261
262262 def test_repr_very_long (self ):
263263 level = self .lowest .verbose_level
@@ -266,7 +266,7 @@ def test_repr_very_long(self):
266266 item_repr = repr (self .lowest )
267267 finally :
268268 self .lowest .verbose_level = level
269- assert item_repr == " <root[1337].a t1:' very long t ...' , t2:313>"
269+ assert item_repr == ' <root[1337].a t1:" very long text here, much lon ...." , t2:313>'
270270
271271 def test_repetition_attribute_and_repr (self ):
272272 t1 = [1 , 1 ]
@@ -275,7 +275,7 @@ def test_repetition_attribute_and_repr(self):
275275 node = DiffLevel (t1 , t2 )
276276 node .additional ['repetition' ] = some_repetition
277277 assert node .repetition == some_repetition
278- assert repr (node ) == " <root {' repetition': ' some repetition'}>"
278+ assert repr (node ) == ' <root {" repetition":" some repetition"}>'
279279
280280
281281class TestChildRelationship :
@@ -286,14 +286,14 @@ def test_create_invalid_klass(self):
286286 def test_rel_repr_short (self ):
287287 rel = WorkingChildRelationship (parent = "that parent" , child = "this child" , param = "some param" )
288288 rel_repr = repr (rel )
289- expected = " <WorkingChildRelationship parent:' that parent' , child:' this child' , param:' some param'>"
289+ expected = ' <WorkingChildRelationship parent:" that parent" , child:" this child" , param:" some param">'
290290 assert rel_repr == expected
291291
292292 def test_rel_repr_long (self ):
293293 rel = WorkingChildRelationship (
294- parent = "that parent who has a long path" ,
294+ parent = "that parent who has a long path, still going on. Yes, a very long path indeed. " ,
295295 child = "this child" ,
296296 param = "some param" )
297297 rel_repr = repr (rel )
298- expected = " <WorkingChildRelationship parent:' that parent...' , child:' this child' , param:' some param'>"
298+ expected = ' <WorkingChildRelationship parent:" that parent who has a long pa ...." , child:" this child" , param:" some param">'
299299 assert rel_repr == expected
0 commit comments