MCPcopy Index your code
hub / github.com/danfengcao/binlog2sql / test_fix_object

Method test_fix_object

tests/test_binlog2sql_util.py:53–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 self.assertEqual(compare_items(('data', None)), '`data` IS %s')
52
53 def test_fix_object(self):
54 self.assertEqual(fix_object('ascii'), 'ascii')
55 self.assertEqual(fix_object(u'unicode'), u'unicode'.encode('utf-8'))
56
57 def test_generate_sql_pattern(self):
58 row = {'values': {'data': 'hello', 'id': 1}}

Callers

nothing calls this directly

Calls 1

fix_objectFunction · 0.85

Tested by

no test coverage detected