diff 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
line wrap: on
line diff
--- a/test/test_info.py	Thu Aug 05 16:21:47 2010 +0000
+++ b/test/test_info.py	Fri Aug 06 11:06:08 2010 +0000
@@ -11,14 +11,10 @@
 import os
 import sys
 
-test_dir = os.path.dirname(__file__)
-sys.path.append(os.path.join(test_dir, os.pardir))
-
 from treepkg.info.status import TreepkgInfo, TreepkgRootInfo
 
 from filesupport import FileTestMixin
-
-from publishdebianpackages import get_binary_arch
+from treepkg.publish import get_binary_arch
 
 class TreepkgInfoTest(unittest.TestCase, FileTestMixin):
     config_contents = """\
@@ -83,7 +79,7 @@
         xml = dom.toxml()
         self.assertEquals("<info><name>testtreepkg</name></info>", xml)
 
-class TestPublishDebianPackages(unittest.TestCase, FileTestMixin):
+class TestPublish(unittest.TestCase, FileTestMixin):
 
     def test_get_binary_arch(self):
         source = get_binary_arch("source")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)