'Test slugify.'

def test_slugify(self):

    self.assertEqual('test', util.slugify('T-!@#$!#@$!$est'))
    self.assertEqual('test_more', util.slugify('Test    More'))
    self.assertEqual('test_more', util.slugify('Test_(More)'))
    self.assertEqual('test_more', util.slugify('T\xc3\xa8st_M\xc3\xb6r\xc3\xaa'))
    self.assertEqual('b827eb000000', util.slugify('B8:27:EB:00:00:00'))
    self.assertEqual('testcom', util.slugify('test.com'))
    self.assertEqual('greg_phone__exp_wayp1', util.slugify('greg_phone    -    exp_wayp1'))
    self.assertEqual('we_are_we_are_a_test_calendar', util.slugify('We    are,    we    are,    a...    Test    Calendar'))
    self.assertEqual('test_aouss_aou', util.slugify('T\xc3\xa8st_\xc3\xa4\xc3\xb6\xc3\xbc\xc3\x9f_\xc3\x84\xc3\x96\xc3\x9c'))
