@pytest.mark.skipif((1, 10) >= VERSION, reason='Django >= 1.10 dropped `get_field_by_name` method of `Options`.')
def test_get_field_by_name():
    assert BaseModel._meta.get_field_by_name('money')[0].__class__.__name__ == 'MoneyField'
    assert BaseModel._meta.get_field_by_name('money_currency')[0].__class__.__name__ == 'CurrencyField'
dataset/ETHPy150Open django-money/django-money/tests/test_models.py/test_get_field_by_name/swapped operands of `>=`