def test_cant_call_init_again(self): i = ImmutableDict({"foo": True}) with self.assertRaises(RuntimeError): i.__init__()