def METHOD_NAME(self):
    self.assertNotIn("name1", self.registry)
    self.assertNotIn("name2", self.registry)
    self.n1_called = False
    self.n2_called = False
    @self.registry("name1")
    def some_registration1():
        self.n1_called = True
    @self.registry("name2")
    def some_registration2():
        self.n2_called = True
    self.assertIn("name1", self.registry)
    self.assertEqual(some_registration1, self.registry["name1"])
    self.assertIn("name2", self.registry)
    self.assertEqual(some_registration2, self.registry["name2"])
    self.registry["name1"]()
    self.assertTrue(self.n1_called)
    self.registry["name2"]()
    self.assertTrue(self.n2_called)