def testExistKeyUpdateType__register(self):
        # set first key
        v = lambda: 'bar'
        t = {'a': 1, 'b': 2, 'c': 3}
        self.registry.register('foo', v, t)
        self.assertEqual(self.registry._actions['foo'], v)
        self.assertEqual(self.registry._type_info['foo'], t)

        # update type info for same key
        t2 = {'a': 9, 'd': 4}
        t3 = t.copy()
        t3.update(t2)
        self.registry.register('foo', v, t2)
        self.assertEqual(self.registry._actions['foo'], v)
        self.assertEqual(self.registry._type_info['foo'], t3)
ExtRegistry.register: updates type info for existing key.
dataset/ETHPy150Open xtrementl/focus/tests/unit/test_registry.py/TestExtRegistry.testExistKeyUpdateType__register