comparison test/test_debian.py @ 185:e1c7cd896310

Rework test/filesupport.py so that test cases always use their own temporary directory. Before, the test cases had to ensure this themselves. Adapt the test cases.
author Bernhard Herzog <bh@intevation.de>
date Thu, 26 Jun 2008 16:23:26 +0000
parents e83e96ef12b1
children 86ea689eda5f
comparison
equal deleted inserted replaced
184:83c77307ffb1 185:e1c7cd896310
44 . 44 .
45 Runtime library files. 45 Runtime library files.
46 """ 46 """
47 47
48 def test(self): 48 def test(self):
49 filename = self.create_temp_file(self.id() + "-control", 49 filename = self.create_temp_file("control", self.control_contents)
50 self.control_contents)
51 parsed = DebianControlFile(filename) 50 parsed = DebianControlFile(filename)
52 self.assertEquals(parsed.packages, 51 self.assertEquals(parsed.packages,
53 [('libksba-dev', 'any'), ('libksba8', 'any')]) 52 [('libksba-dev', 'any'), ('libksba8', 'any')])
54 self.assertEquals(parsed.build_depends, 53 self.assertEquals(parsed.build_depends,
55 ['debhelper', 'libgpg-error-dev', 'bison', 54 ['debhelper', 'libgpg-error-dev', 'bison',
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)