def METHOD_NAME(self, mock_write_settings, mock_get_key):
    test_settings = {}
    mock_get_key.return_value = (test_settings, "test")
    cmds.set_settings(test_settings, [("test", "test")])
    self.assertDictEqual(test_settings, {"test": "test"})
    mock_write_settings.assert_called_with(test_settings)