def METHOD_NAME(host, cap):
    """check for exact list of expected app-armor capabilities for Tor"""
    c = host.run(r"perl -nE '/^\s+capability\s+(\w+),$/ && say $1' /etc/apparmor.d/usr.sbin.tor")
    assert cap in c.stdout