def test_is_ascii_false(self): test_string ='oaeuAOEU灼眼のシャナ:<>%75' p = torrentinfo.is_ascii_only(test_string) torrentinfo.dump(test_string, self.config, 0, newline=False) self.assertFalse(p)
def test_is__ascii_true(self): test_string = 'simple ascii' p = torrentinfo.is_ascii_only(test_string) self.assertTrue(p)