@pytest.mark.skipif(VERSION < (1, 7), reason='Django < 1.7 handles migrations differently')
def test_migration_serialization():
    imports = set(['import djmoney.models.fields'])
    if PY2:
        serialized = 'djmoney.models.fields.MoneyPatched(100, b\'GBP\')'
    else:
        serialized = 'djmoney.models.fields.MoneyPatched(100, \'GBP\')'
    assert MigrationWriter.serialize(MoneyPatched(100, 'GBP')) == (serialized, imports)
dataset/ETHPy150Open django-money/django-money/tests/test_models.py/test_migration_serialization/original