def test_register_field_decorator(self):
        @display_fields.register_field
        class SomeField(object):
            base_name = 'some_field'
            def __init__(self, ref):
                self.ref = ref

        reg = display_fields.FieldRegistry()

        field = reg.create('some_field')
        self.assertEqual(0, field.ref)
        self.assertEqual(SomeField, field.__class__)
Calculate the difference between a and b, two python longs,
dataset/ETHPy150Open rbarrois/mpdlcd/tests/test_display_fields.py/FieldRegistryTestCase.test_register_field_decorator--crossover with--dataset/ETHPy150Open andrewf/pcap2har/pcap2har/tcp/seq.py/subtract