def test_format_2a(self): # Creating a 2a branch reports the format to branchChanged. db_branch = self.factory.makeAnyBranch( branch_type=BranchType.HOSTED, owner=self.requester) branch = self.make_branch( db_branch.unique_name, format=format_registry.get('2a')()) self.assertFormatStringsPassed(branch)
def test_format_2a(self): # Creating a 2a branch reports the format to branchChanged. db_branch = self.factory.makeAnyBranch(branch_type=BranchType.HOSTED, owner=self.requester) branch = self.make_branch(db_branch.unique_name, format=format_registry.get('2a')()) self.assertFormatStringsPassed(branch)
def check_authserver_called(ignored): default_format = format_registry.get('default')() control_string = default_format.get_format_string() branch_string = \ default_format.get_branch_format().get_format_string() repository_string = \ default_format.repository_format.get_format_string() self.assertEqual([ ('branchChanged', LAUNCHPAD_SERVICES, self.db_branch.id, '', revision_id, control_string, branch_string, repository_string) ], self.client.calls) return ignored
def check_authserver_called(ignored): default_format = format_registry.get('default')() control_string = default_format.get_format_string() branch_string = \ default_format.get_branch_format().get_format_string() repository_string = \ default_format.repository_format.get_format_string() self.assertEqual( [('branchChanged', LAUNCHPAD_SERVICES, self.db_branch.id, '', revision_id, control_string, branch_string, repository_string)], self.client.calls) return ignored
def test_1_9_stackable(self): # The original packs are unstackable. branch = self.make_branch( 'branch', format=format_registry.get("1.9")()) self.assertTrue(is_branch_stackable(branch))
def test_packs_unstackable(self): # The original packs are unstackable. branch = self.make_branch( 'branch', format=format_registry.get("pack-0.92")()) self.assertFalse(is_branch_stackable(branch))
def test_1_9_stackable(self): # The original packs are unstackable. branch = self.make_branch('branch', format=format_registry.get("1.9")()) self.assertTrue(is_branch_stackable(branch))
def test_packs_unstackable(self): # The original packs are unstackable. branch = self.make_branch('branch', format=format_registry.get("pack-0.92")()) self.assertFalse(is_branch_stackable(branch))