Пример #1
0
 def test_is_printable_ascii_success(self):
     test_string = 'perfectly printable ascii'
     torrentinfo.dump(test_string, self.config, 0, newline=False)
     self.assertEqual(self.out.getvalue(), test_string)
Пример #2
0
 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)