~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/codehosting/tests/helpers.py

Reply to most of Andrew's review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
__all__ = [
7
7
    'AvatarTestCase', 'CodeHostingTestProviderAdapter',
8
8
    'CodeHostingRepositoryTestProviderAdapter', 'FakeLaunchpad',
9
 
    'ServerTestCase', 'adapt_suite', 'deferToThread']
 
9
    'ServerTestCase', 'adapt_suite', 'create_branch_with_one_revision',
 
10
    'deferToThread']
10
11
 
11
12
import os
12
13
import shutil
404
405
    return suite
405
406
 
406
407
 
407
 
def create_branch(branch_dir):
 
408
def create_branch_with_one_revision(branch_dir):
408
409
    os.makedirs(branch_dir)
409
410
    tree = bzrdir.BzrDir.create_standalone_workingtree(branch_dir)
410
411
    f = open(branch_dir + 'hello', 'w')