def METHOD_NAME(self, mock_cfgdb):
    cfgdb = mock_cfgdb
    runner = CliRunner()
    # Enable nonexisted profile 
    result = runner.invoke(macsec.macsec, ["port", "add", "Ethernet0", "test"], obj=cfgdb)
    assert result.exit_code != 0
    # Delete nonexisted profile
    result = runner.invoke(macsec.macsec, ["profile", "del", "test"], obj=cfgdb)
    assert result.exit_code != 0
    result = runner.invoke(macsec.macsec, ["profile", "add", "test", "--primary_cak=2363647040534355560e000802065d574d400e000e030307075f0e5050000e5541","--primary_ckn=01234567890123456789012345678912"], obj=cfgdb)
    assert result.exit_code == 0, "exit code: {}, Exception: {}, Traceback: {}".format(result.exit_code, result.exception, result.exc_info)
    # Repeat add profile
    result = runner.invoke(macsec.macsec, ["profile", "add", "test", "--primary_cak=2363647040534355560e000802065d574d400e000e030307075f0e5050000e5541","--primary_ckn=01234567890123456789012345678912"], obj=cfgdb)
    assert result.exit_code != 0