def METHOD_NAME(self):
    """Test the automatically set values of ACDEFINES, and ALLDEFINES"""
    env = PartialConfigEnvironment(self._objdir())
    env.write_vars(config)
    self.assertEqual(env.substs["ACDEFINES"], "-DMOZ_BAR=2 -DMOZ_FOO=1")
    self.assertEqual(
        env.defines["ALLDEFINES"],
        {
            "MOZ_BAR": "2",
            "MOZ_FOO": "1",
        },
    )