Refactor tests to use the Selections object instead of the Policy object
[zeroinstall/zeroinstall-mseaborn.git] / tests / test-gui
blobfa047020a87baaa9e61b266faef7bf3c8bad6dbe
1 #!/usr/bin/env python
2 import os, sys
3 mydir = os.path.dirname(__file__)
4 output = """<?xml version="1.0" ?>
5 <selections interface="http://foo" xmlns="http://zero-install.sourceforge.net/2004/injector/interface"><selection id="%s" interface="http://foo" main="basetest.py" version="1"/></selections>""" % mydir
6 sys.stdout.write('Length:%8x\n' % len(output))
7 sys.stdout.write(output)