/usr/share/pyshared/axiom/test/itemtestmain.py is in python-axiom 0.7.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import sys
from axiom import store
from twisted.python import filepath
def main(storePath, itemID):
assert 'axiom.test.itemtest' not in sys.modules, "Test is invalid."
st = store.Store(filepath.FilePath(storePath))
item = st.getItemByID(itemID)
print item.plain
if __name__ == '__main__':
main(storePath=sys.argv[1], itemID=int(sys.argv[2]))
|