~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Aaron Bentley
  • Date: 2010-02-25 04:15:25 UTC
  • mfrom: (730.1.5 2.0)
  • Revision ID: aaron@aaronbentley.com-20100225041525-41kwgjtklpflxhbw
Merged 2.0 into 2.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
from bzrlib.config import LocationConfig
7
7
from bzrlib.transport import get_transport
8
8
from bzrlib.tests import TestCaseWithTransport, HardlinkFeature
 
9
from bzrlib.plugins.bzrtools import command
9
10
 
10
11
 
11
12
class TestBzrTools(TestCaseWithTransport):
 
13
 
 
14
    def setUp(self):
 
15
        TestCaseWithTransport.setUp(self)
 
16
        command._testing = True
 
17
        self.addCleanup(command._stop_testing)
 
18
 
12
19
    @staticmethod
13
20
    def touch(filename):
14
21
        file(filename, 'wb').write('')