~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-15 11:26:00 UTC
  • mfrom: (5757.7.7 knitpackrepo-6)
  • mto: This revision was merged to the branch mainline in revision 5801.
  • Revision ID: jelmer@samba.org-20110415112600-vrv2431lh3gi6wx2
MergeĀ knitpackrepo-6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        self.assertFormatAttribute('supports_leaving_lock',
100
100
            (True, False))
101
101
 
 
102
    def test_attribute_format_revision_graph_can_have_wrong_parents(self):
 
103
        self.assertFormatAttribute('revision_graph_can_have_wrong_parents',
 
104
            (True, False))
 
105
 
102
106
    def test_format_is_deprecated(self):
103
107
        repo = self.make_repository('repo')
104
108
        self.assertSubset([repo._format.is_deprecated()], (True, False))
695
699
        """
696
700
        repo = self.make_repository('.')
697
701
        # This should work, not raise NotImplementedError:
698
 
        if not repo.revision_graph_can_have_wrong_parents():
 
702
        if not repo._format.revision_graph_can_have_wrong_parents:
699
703
            return
700
704
        repo.lock_read()
701
705
        self.addCleanup(repo.unlock)