def test_valid_characters(self):
     """Tests that all weird but valid characters are accepted."""
     for n in range(1, 32):
         filename = u"xy" + unichr(n) + u"zzy"
         normalize_filename(filename)
         validate_filename(filename)
     for c in [u':', u';', u'*', u'?', u'\\', u'\x7f']:
         filename = u"xy" + c + u"zzy"
         normalize_filename(filename)
         validate_filename(filename)
 def test_trivial(self):
     """Tests the trivial case of an ASCII filename."""
     self.assertEqual(u'foobar', normalize_filename(u'foobar'))
     validate_filename(u'foobar')