예제 #1
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)
예제 #2
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)