~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-23 06:39:46 UTC
  • mfrom: (2034 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2035.
  • Revision ID: john@arbash-meinel.com-20060923063946-e596c8a8eef928b4
[merge] bzr.dev 2034

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import os
19
19
 
20
20
import bzrlib
 
21
from bzrlib import errors
21
22
from bzrlib.tests import TestCaseWithTransport
22
23
from bzrlib.branch import Branch
23
24
from bzrlib.bzrdir import BzrDir, BzrDirMetaFormat1
543
544
        timestamp = rev.timestamp
544
545
        timestamp_1ms = round(timestamp, 3)
545
546
        self.assertEqual(timestamp_1ms, timestamp)
 
547
 
 
548
    def test_commit_unversioned_specified(self):
 
549
        """Commit should raise if specified files isn't in basis or worktree"""
 
550
        tree = self.make_branch_and_tree('.')
 
551
        self.assertRaises(errors.PathsNotVersionedError, tree.commit, 
 
552
                          'message', specific_files=['bogus'])