from . import context
-import testutils
+from . import testutils
from gbp.scripts import dch
from __future__ import print_function
from . import context
+from . import testutils
import os
-import tests.testutils as testutils
-
import gbp.log
import gbp.git
import gbp.errors
"""Test L{buildpackage}'s get_upstream_tree method"""
from . import context
-
-import tests.testutils as testutils
+from . import testutils
import gbp.errors
import gbp.scripts.buildpackage as buildpackage
"""Test L{gbp.scripts.dch} main"""
from . import context
-
-import unittest
-
-from tests.testutils import (DebianGitTestRepo, OsReleaseFile,
- get_dch_default_urgency)
+from .testutils import (DebianGitTestRepo, OsReleaseFile,
+ get_dch_default_urgency)
from gbp.scripts import dch
+import unittest
import os
import re
"""Test L{gbp.pq}"""
from . import context
+from . import testutils
import os
import logging
from gbp.scripts.pq import generate_patches, export_patches
import gbp.scripts.common.pq as pq
import gbp.patch_series
-import tests.testutils as testutils
class TestApplyAndCommit(testutils.DebianGitTestRepo):
"""Test L{gbp.pq}'s apply_and_commit"""
"""Test L{gbp.pq}"""
from . import context
+from . import testutils
-import testutils
import gbp.log
import gbp.scripts.import_dscs as import_dscs
"""Test L{gbp.pq}"""
from . import context
+from . import testutils
import os
-import testutils
+
from gbp.deb.source import DebianSource, DebianSourceError
from gbp.deb.format import DebianSourceFormat
from gbp.git.vfs import GitVfs
"""Test L{Changelog}'s guess_version_from_upstream"""
from . import context
-
-import testutils
+from . import testutils
from gbp.scripts import dch
import sys
import unittest
from gbp.config import GbpOptionParser, GbpOptionGroup
-from . testutils import GbpLogTester
+from .testutils import GbpLogTester
class TestConfigParser(unittest.TestCase, GbpLogTester):
def __init__(self, methodName='runTest'):
>>> import tempfile
>>> import shutil
>>> import gbp.deb.changelog
- >>> from tests.testutils import OsReleaseFile
+ >>> from .testutils import OsReleaseFile
>>> os_release = OsReleaseFile('/etc/lsb-release')
>>> olddir = os.path.abspath(os.path.curdir)
>>> testdir = tempfile.mkdtemp(prefix='gbp-test-changelog-')
>>> import tempfile
>>> import shutil
>>> import gbp.deb.changelog
- >>> from tests.testutils import OsReleaseFile
+ >>> from .testutils import OsReleaseFile
>>> os_release = OsReleaseFile('/etc/lsb-release')
>>> olddir = os.path.abspath(os.path.curdir)
>>> testdir = tempfile.mkdtemp(prefix='gbp-test-changelog-')