def METHOD_NAME(self, _: Mock) -> None:
    with temporary_root() as root:
        mock_random_string = Mock()
        hooks.Filters.ENV_TEMPLATE_FILTERS.add_item(
            ("random_string", mock_random_string),
        )
        mock_random_string.return_value = "abcd"
        config1 = tutor_config.load_full(root)
        password1 = config1.pop("MYSQL_ROOT_PASSWORD")
        tutor_config.save_config_file(root, config1)
        mock_random_string.return_value = "efgh"
        config2 = tutor_config.load_full(root)
        password2 = config2["MYSQL_ROOT_PASSWORD"]
    self.assertEqual("abcd", password1)
    self.assertEqual("efgh", password2)