Esempio n. 1
0
 def test_create_push_message_stacked_on(self):
     from_branch = object()
     to_branch = self.make_branch_and_tree('that').branch
     MockMethod.bind(self, to_branch, 'get_stacked_on_url', 'lp:project')
     push_result = push.create_push_result(from_branch, to_branch)
     from_branch = self.make_from_branch()
     message = push.create_push_message(from_branch, push_result)
     self.assertEqual(
         '1 revision(s) pushed.\nStacked on lp:project.', message)
Esempio n. 2
0
 def test_create_push_message_workingtree_updated_false(self):
     from_branch = object()
     to_branch = self.make_branch_and_tree('that').branch
     push_result = push.create_push_result(from_branch, to_branch)
     push_result.workingtree_updated = False
     from_branch = self.make_from_branch()
     message = push.create_push_message(from_branch, push_result)
     self.assertEqual(
         "1 revision(s) pushed.\n\nThe working tree was not updated:\n"
         "See 'bzr help working-trees' for more information.",
         message)