~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_conflicts.py

  • Committer: Aaron Bentley
  • Date: 2006-04-05 18:48:31 UTC
  • mto: (2027.1.2 revert-subpath-56549)
  • mto: This revision was merged to the branch mainline in revision 1647.
  • Revision ID: abentley@panoramicfeedback.com-20060405184831-75d8f15c293393e7
Removed conflicts_to_stanzas and stanzas_to_conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
class TestConflictStanzas(TestCase):
69
69
    def test_stanza_roundtrip(self):
70
 
        stanza_iter = conflicts_to_stanzas(example_conflicts)
71
 
        processed = list(stanzas_to_conflicts(stanza_iter))
 
70
        stanza_iter = example_conflicts.to_stanzas()
 
71
        processed = ConflictList.from_stanzas(stanza_iter)
72
72
        for o,p in zip(processed, example_conflicts):
73
73
            self.assertEqual(o, p)
74
74
 
75
75
    def test_stanzification(self):
76
 
        for stanza in conflicts_to_stanzas(example_conflicts):
 
76
        for stanza in example_conflicts.to_stanzas():
77
77
            try:
78
78
                self.assertStartsWith(stanza['file_id'], 'id')
79
79
            except KeyError: