def METHOD_NAME(self):
    # Reinitialization should not replace the __dict__
    foo = ModuleType("foo", "foodoc\u1234")
    foo.bar = 42
    d = foo.__dict__
    foo.__init__("foo", "foodoc")
    self.assertEqual(foo.__name__, "foo")
    self.assertEqual(foo.__doc__, "foodoc")
    self.assertEqual(foo.bar, 42)
    self.assertEqual(foo.__dict__,
          {"__name__": "foo", "__doc__": "foodoc", "bar": 42,
           "__loader__": None, "__package__": None, "__spec__": None})
    self.assertTrue(foo.__dict__ is d)