~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/whitebox.py

  • Committer: Robert Collins
  • Date: 2005-10-14 02:17:36 UTC
  • mfrom: (1185.16.34)
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051014021736-7230e59066856096
MergeĀ fromĀ Martin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        b.commit('commit pointless revision with one file',
46
46
                 allow_pointless=True)
47
47
 
48
 
        
49
 
 
50
 
 
51
 
class TestRevisionId(TestCase):
52
 
    
53
 
    def test_validate_revision_id(self):
54
 
        from bzrlib.revision import validate_revision_id
55
 
        validate_revision_id('mbp@sourcefrog.net-20050311061123-96a255005c7c9dbe')
56
 
        self.assertRaises(ValueError,
57
 
                          validate_revision_id,
58
 
                          ' asdkjas')
59
 
        self.assertRaises(ValueError,
60
 
                          validate_revision_id,
61
 
                          'mbp@sourcefrog.net-20050311061123-96a255005c7c9dbe\n')
62
 
        self.assertRaises(ValueError,
63
 
                          validate_revision_id,
64
 
                          ' mbp@sourcefrog.net-20050311061123-96a255005c7c9dbe')
65
 
        self.assertRaises(ValueError,
66
 
                          validate_revision_id,
67
 
                          'Martin Pool <mbp@sourcefrog.net>-20050311061123-96a255005c7c9dbe')
68
 
 
69
48
 
70
49
class MoreTests(TestCaseInTempDir):
71
50