@@ -81,7 +81,7 @@ def test_a(self):
81
81
class TestDiffLevel :
82
82
def setup_class (cls ):
83
83
# 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 )
85
85
cls .custom2 = CustomClass (a = 313 , b = 37 )
86
86
cls .t1 = {42 : 'answer' , 'vegan' : 'for life' , 1337 : cls .custom1 }
87
87
cls .t2 = {
@@ -257,7 +257,7 @@ def test_repr_long(self):
257
257
item_repr = repr (self .lowest )
258
258
finally :
259
259
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>'
261
261
262
262
def test_repr_very_long (self ):
263
263
level = self .lowest .verbose_level
@@ -266,7 +266,7 @@ def test_repr_very_long(self):
266
266
item_repr = repr (self .lowest )
267
267
finally :
268
268
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>'
270
270
271
271
def test_repetition_attribute_and_repr (self ):
272
272
t1 = [1 , 1 ]
@@ -275,7 +275,7 @@ def test_repetition_attribute_and_repr(self):
275
275
node = DiffLevel (t1 , t2 )
276
276
node .additional ['repetition' ] = some_repetition
277
277
assert node .repetition == some_repetition
278
- assert repr (node ) == " <root {' repetition': ' some repetition'}>"
278
+ assert repr (node ) == ' <root {" repetition":" some repetition"}>'
279
279
280
280
281
281
class TestChildRelationship :
@@ -286,14 +286,14 @@ def test_create_invalid_klass(self):
286
286
def test_rel_repr_short (self ):
287
287
rel = WorkingChildRelationship (parent = "that parent" , child = "this child" , param = "some param" )
288
288
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">'
290
290
assert rel_repr == expected
291
291
292
292
def test_rel_repr_long (self ):
293
293
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. " ,
295
295
child = "this child" ,
296
296
param = "some param" )
297
297
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">'
299
299
assert rel_repr == expected
0 commit comments