def METHOD_NAME(self, mock_expand_user, mock_keys):
    # Mock user home dir path
    mock_expand_user.assert_called_with = "~"
    test_home_dir = "/home/user"
    mock_expand_user.return_value = test_home_dir
    # Mock generated keys return values
    test_key_contents = "======ssh-rsa foo"
    mock_keys.return_value = test_key_contents
    # Call func
    result = CustomSshOptions.generate_ssh_keys()
    # Validate call values match mock home dir
    mock_keys.assert_called_with(
        "{}/.ssh/id_rsa_generated".format(test_home_dir),
        "{}/.ssh/id_rsa_generated.pub".format(test_home_dir),
    )
    # Validate result matches key returned by azcli lib
    self.assertEqual(result, [{"keyData": test_key_contents}])