summaryrefslogtreecommitdiffhomepage
path: root/tests/12_test_deb.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-04-29 20:55:40 +0200
committerGuido Günther <agx@sigxcpu.org>2013-04-29 21:14:18 +0200
commit43e60bb76e80c6ca7be1ee1da582fe78c5465349 (patch)
tree415cea02d452df14d26c25344601c7be3b03fe9b /tests/12_test_deb.py
parent45c2346f6a52aec196dd89b8d09d8b06d05b8867 (diff)
Make parse_dsc a classmethod of DscFile
so we have the object creation close to the object itself.
Diffstat (limited to 'tests/12_test_deb.py')
-rw-r--r--tests/12_test_deb.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/12_test_deb.py b/tests/12_test_deb.py
index 8a35ac5f..d46f987c 100644
--- a/tests/12_test_deb.py
+++ b/tests/12_test_deb.py
@@ -7,6 +7,8 @@ from . import context
import os, tempfile, unittest
import gbp.deb
+
+from gbp.deb.dscfile import DscFile
from gbp.command_wrappers import CommandExecFailed
class TestDscFile(unittest.TestCase):
@@ -51,9 +53,9 @@ Files:
def tearDown(self):
os.unlink(self.dscfile.name)
- def test_parse_dsc_file(self):
+ def test_dscfile_parse(self):
"""Test parsing a valid dsc file"""
- dsc = gbp.deb.parse_dsc(self.dscfile.name)
+ dsc = DscFile.parse(self.dscfile.name)
self.assertEqual(dsc.version, '0.9.12-4')