Ejemplo n.º 1
0
 def test_unregister(self):
     # unregister a field that we know exists
     field_registry.unregister('__balance__')
     self.assertNotIn('__balance__',
                      field_registry.get_all_report_fields_names())
     # bring it back again as later tests using it would fail
     field_registry.register(BalanceReportField)
Ejemplo n.º 2
0
 def register():
     field_registry.unregister('__a_weird_name__')
Ejemplo n.º 3
0
 def test_unregister(self):
     # unregister a field that we know exists
     field_registry.unregister('__balance__')
     self.assertNotIn('__balance__',
                      field_registry.get_all_report_fields_names())