~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/whitebox.py

  • Committer: abentley
  • Date: 2005-10-15 01:07:02 UTC
  • mfrom: (1185.16.40)
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1460.
  • Revision ID: abentley@lappy-20051015010702-0b7a58668e447397
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