def test_cli(pypi_xml):
    print "Testing CLI"
    for event, elem in iterparse(pypi_xml):
        if elem.tag == "title":
            if not elem.text.startswith('Cheese Shop recent updates'):
                print "Testing %s..." % elem.text
                pkg_name, ver = get_pkg_ver(elem.text)
                if " " in pkg_name:
                    print "Space in package name, skipping: %s" % pkg_name
                else:
                    os.system("yolk -V '%s'" % pkg_name)
                    os.system("yolk -D %s==%s" % (pkg_name, ver))
            elem.clear()
Test the command-line tool
dataset/ETHPy150Open cakebread/yolk/tests/rss_feed.py/test_cli