Mercurial > treepkg
view test/status/test_status.py @ 386:ffa86312ee81 treepkg-status
added classed for treepkg status xml generation
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Wed, 07 Jul 2010 15:40:48 +0000 |
parents | |
children |
line wrap: on
line source
# Copyright (C) 2010 by Intevation GmbH # Authors: # Bjoern Ricks <bjoern.ricks@intevation.de> # # This program is free software under the GPL (>=v2) # Read the file COPYING coming with the software for details. """Tests for treepkg.status.status""" import unittest import os.path import sys test_dir = os.path.dirname(__file__) sys.path.append(os.path.join(test_dir, os.pardir, os.pardir)) from treepkg.status.status import TreepkgStatus class TreepkgStatusTest(unittest.TestCase): def test_toxml(self): status = TreepkgStatus("testtreepkg") dom = status.toxml() xml = dom.toxml() self.assertEquals("<status><name>testtreepkg</name></status>", xml) if __name__ == '__main__': unittest.main()