~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-19 19:21:13 UTC
  • mto: This revision was merged to the branch mainline in revision 6404.
  • Revision ID: jelmer@canonical.com-20111219192113-9p9vpkqesv9rsujo
Ignore optional non-feature lines in bzr formats.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1486
1486
            "First line\nrequired bla foo\n")
1487
1487
        self.assertRaises(ValueError, SampleBzrFormat.from_string,
1488
1488
            "First line\nfoo\n")
 
1489
        format = SampleBzrFormat.from_string(
 
1490
            "First line\noptional bla foo\n")
 
1491
        self.assertEquals(None, format.features.get("foo"))
 
1492
        format = SampleBzrFormat.from_string(
 
1493
            "First line\nrequired feature foo with spaces\n")
 
1494
        self.assertEquals("required", format.features.get("foo with spaces"))
1489
1495
 
1490
1496
    def test_eq(self):
1491
1497
        format1 = SampleBzrFormat()