~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/commands/test_commit.py

  • Committer: Ian Clatworthy
  • Date: 2007-12-07 04:21:59 UTC
  • mto: This revision was merged to the branch mainline in revision 3092.
  • Revision ID: ian.clatworthy@internode.on.net-20071207042159-n9rmhanqid1l7olh
Better PDF for Qiock Start Card (Ian Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
import os
18
18
from bzrlib import (
58
58
                          message=u'empty commit', unchanged=True)
59
59
        self.assertEquals(1, len(self.connections))
60
60
 
61
 
    def test_commit_local(self):
62
 
        """Commits with --local should not connect to the master!"""
63
 
        self.start_logging_connections()
64
 
 
65
 
        commit = builtins.cmd_commit()
66
 
        # commit do not provide a directory parameter, we have to change dir
67
 
        # manually
68
 
        os.chdir('local')
69
 
        commit.run(message=u'empty commit', unchanged=True, local=True)
70
 
 
71
 
        #it shouldn't open any connections
72
 
        self.assertEquals(0, len(self.connections))