def test_slugify_spaces():
 assert (utils.slugify(' b ar ') == 'b-ar')
 assert (utils.slugify(' b ar ', spaces=True) == 'b ar')
 assert (utils.slugify(' b  ar ', spaces=True) == 'b  ar')

def test_slugify_spaces ( ) : assert ( utils . slugify ( ' b ar ' ) == 'b-ar' ) assert ( utils . slugify ( ' b ar ' , spaces = True ) == 'b ar' ) assert ( utils . slugify ( ' b  ar ' , spaces = True ) == 'b  ar' )
we want slugify to preserve spaces .