1
from unittest import makeSuite
3
from bzrlib.config import LocationConfig
4
from bzrlib import osutils
5
from bzrlib.tests import TestCaseWithTransport
7
from bzrlib.plugins.bzrtools.cbranch import cbranch
10
class TestCBranch(TestCaseWithTransport):
12
def test_cbranch_creates_containing_dirs(self):
13
source = self.make_branch_and_tree('source')
14
config = LocationConfig(osutils.abspath('target'))
15
config.set_user_option('cbranch_target',
16
'directory/subdirectory/target_branch')
17
cbranch('source', 'target')
18
self.assertPathExists('directory/subdirectory/target_branch')
22
return makeSuite(TestBzrTools)