/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_foreign.py

  • Committer: Jelmer Vernooij
  • Date: 2009-01-28 16:36:07 UTC
  • mto: (3920.2.35 dpush)
  • mto: This revision was merged to the branch mainline in revision 4281.
  • Revision ID: jelmer@samba.org-20090128163607-adi5y8umpix41oil
More work trying to implement a dummy version control system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Tests for foreign VCS utility code."""
19
19
 
20
20
from bzrlib import errors, foreign
 
21
from bzrlib.bzrdir import BzrDirFormat, BzrDirMeta1
21
22
from bzrlib.inventory import Inventory
22
23
from bzrlib.revision import Revision
23
24
from bzrlib.tests import TestCase, TestCaseWithTransport
69
70
                                       "Version 1")
70
71
 
71
72
 
 
73
class DummyForeignVcsBzrDirFormat(BzrDirMeta1):
 
74
    """BzrDirFormat for the dummy foreign VCS."""
 
75
 
 
76
    def get_format_string(self):
 
77
        return "A Dummy VCS Dir"
 
78
 
 
79
    def get_description_string(self):
 
80
        return "A Dummy VCS Dir"
 
81
 
 
82
 
72
83
class ForeignVcsRegistryTests(TestCase):
 
84
    """Tests for the ForeignVcsRegistry class."""
73
85
 
74
86
    def test_parse_revision_id_no_dash(self):       
75
87
        reg = foreign.ForeignVcsRegistry()