comparison test/test_info.py @ 439:8e0c81870e5e treepkg-status

cleanup modules fix test_info testcases added testcases for remove_trailingslashes and expand_filename
author Bjoern Ricks <bricks@intevation.de>
date Fri, 06 Aug 2010 11:06:08 +0000
parents 3a3cad8f6f60
children e5b66539f893
comparison
equal deleted inserted replaced
438:3a3cad8f6f60 439:8e0c81870e5e
9 9
10 import unittest 10 import unittest
11 import os 11 import os
12 import sys 12 import sys
13 13
14 test_dir = os.path.dirname(__file__)
15 sys.path.append(os.path.join(test_dir, os.pardir))
16
17 from treepkg.info.status import TreepkgInfo, TreepkgRootInfo 14 from treepkg.info.status import TreepkgInfo, TreepkgRootInfo
18 15
19 from filesupport import FileTestMixin 16 from filesupport import FileTestMixin
20 17 from treepkg.publish import get_binary_arch
21 from publishdebianpackages import get_binary_arch
22 18
23 class TreepkgInfoTest(unittest.TestCase, FileTestMixin): 19 class TreepkgInfoTest(unittest.TestCase, FileTestMixin):
24 config_contents = """\ 20 config_contents = """\
25 [DEFAULT] 21 [DEFAULT]
26 #treepkg_dir: /home/builder/mill 22 #treepkg_dir: /home/builder/mill
81 status = TreepkgRootInfo("testtreepkg") 77 status = TreepkgRootInfo("testtreepkg")
82 dom = status.toxml() 78 dom = status.toxml()
83 xml = dom.toxml() 79 xml = dom.toxml()
84 self.assertEquals("<info><name>testtreepkg</name></info>", xml) 80 self.assertEquals("<info><name>testtreepkg</name></info>", xml)
85 81
86 class TestPublishDebianPackages(unittest.TestCase, FileTestMixin): 82 class TestPublish(unittest.TestCase, FileTestMixin):
87 83
88 def test_get_binary_arch(self): 84 def test_get_binary_arch(self):
89 source = get_binary_arch("source") 85 source = get_binary_arch("source")
90 self.assertEquals("source", source) 86 self.assertEquals("source", source)
91 binary_armel = get_binary_arch("armel") 87 binary_armel = get_binary_arch("armel")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)