@@ -383,36 +383,6 @@ def test_posargs2kwargs(args, posarg_names, kwargs, expects):
383
383
assert utils .posargs2kwargs (args , posarg_names , kwargs ) == expects
384
384
385
385
386
- def test_word_join ():
387
- assert utils .word_join ([]) == ''
388
-
389
- assert utils .word_join (["bob" ]) == "bob"
390
- assert utils .word_join (["bob" , "alice" ]) == "bob and alice"
391
- assert utils .word_join (["bob" , "alice" , "fred" ]) == "bob, alice and fred"
392
-
393
- assert utils .word_join (["bob" ], use_repr = True ) == "'bob'"
394
- assert utils .word_join (["bob" , "alice" ], use_repr = True ) == "'bob' and 'alice'"
395
- assert utils .word_join (["bob" , "alice" , "fred" ], use_repr = True ) == "'bob', 'alice' and 'fred'"
396
-
397
- assert utils .word_join (["bob" ], use_repr = True , oxford = True ) == "'bob'"
398
- assert utils .word_join (["bob" , "alice" ], use_repr = True , oxford = True ) == "'bob' and 'alice'"
399
- assert utils .word_join (["bob" , "alice" , "fred" ], use_repr = True , oxford = True ) == "'bob', 'alice', and 'fred'"
400
-
401
- assert utils .word_join (()) == ''
402
-
403
- assert utils .word_join (("bob" , )) == "bob"
404
- assert utils .word_join (("bob" , "alice" )) == "bob and alice"
405
- assert utils .word_join (("bob" , "alice" , "fred" )) == "bob, alice and fred"
406
-
407
- assert utils .word_join (("bob" , ), use_repr = True ) == "'bob'"
408
- assert utils .word_join (("bob" , "alice" ), use_repr = True ) == "'bob' and 'alice'"
409
- assert utils .word_join (("bob" , "alice" , "fred" ), use_repr = True ) == "'bob', 'alice' and 'fred'"
410
-
411
- assert utils .word_join (("bob" , ), use_repr = True , oxford = True ) == "'bob'"
412
- assert utils .word_join (("bob" , "alice" ), use_repr = True , oxford = True ) == "'bob' and 'alice'"
413
- assert utils .word_join (("bob" , "alice" , "fred" ), use_repr = True , oxford = True ) == "'bob', 'alice', and 'fred'"
414
-
415
-
416
386
def test_convert_indents ():
417
387
418
388
# TODO: test 'to'
0 commit comments