def test_disarmed_weird():
 nikola.utils.USE_SLUGIFY = False
 o = nikola.utils.slugify(u'Za\u017c\xf3\u0142\u0107 g\u0119\u015bl\u0105 ja\u017a\u0144!-123.456 "Hello World"?#H<e>l/l\\o:W\'o\rr*l DCTB d|!\n', lang=u'pl')
 assert (o == u'Za\u017c\xf3\u0142\u0107 g\u0119\u015bl\u0105 ja\u017a\u0144!-123.456 -Hello World---H-e-l-l-o-W-o-r-l-d-!-')
 assert isinstance(o, nikola.utils.unicode_str)
 nikola.utils.USE_SLUGIFY = True

def test_disarmed_weird ( ) : nikola . utils . USE_SLUGIFY = False o = nikola . utils . slugify ( u'Za\u017c\xf3\u0142\u0107 g\u0119\u015bl\u0105 ja\u017a\u0144!-123.456 "Hello World"?#H<e>l/l\\o:W\'o\rr*l DCTB d|!\n' , lang = u'pl' ) assert ( o == u'Za\u017c\xf3\u0142\u0107 g\u0119\u015bl\u0105 ja\u017a\u0144!-123.456 -Hello World---H-e-l-l-o-W-o-r-l-d-!-' ) assert isinstance ( o , nikola . utils . unicode_str ) nikola . utils . USE_SLUGIFY = True
test disarmed slugify with banned characters .