Ejemplo n.º 1
0
def test_serialize_doesnt_change_orignal(raw_binlog_status):

    status_original = BinlogStatus(content=raw_binlog_status)
    status_original_before = deepcopy(status_original)

    assert status_original == status_original_before
    status_original.serialize()
    assert status_original == status_original_before
Ejemplo n.º 2
0
def test_serialize(raw_binlog_status):
    status_original = BinlogStatus(raw_binlog_status)
    status_converted = status_original.serialize()

    assert BinlogStatus(content=status_converted) == status_original