Esempio n. 1
0
 def test_normalize_bytes(self):
     fh, path = mkstemp()
     dumper = MysqlCSVDumper(path)
     dumper.add_row((make_str('фуу'),))
     dumper.close()
     self.assertTrue(u'фуу' in open(path, encoding='utf-8').read())
     os.unlink(path)
Esempio n. 2
0
 def test_normalize_int(self):
     fh, path = mkstemp()
     dumper = MysqlCSVDumper(path)
     dumper.add_row((1,))
     dumper.close()
     self.assertTrue(u'1' in open(path, encoding='utf-8').read())
     os.unlink(path)
Esempio n. 3
0
 def test_constructor(self):
     fh, path = mkstemp()
     MysqlCSVDumper(path)
     os.unlink(path)