~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_index.py

  • Committer: Robert Collins
  • Date: 2007-07-13 07:28:18 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070713072818-5db95luqwe9palp5
Empty keys are invalid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        for bad_char in '\t\n\x0b\x0c\r\x00 ':
90
90
            self.assertRaises(errors.BadIndexKey, builder.add_node,
91
91
                'a%skey' % bad_char, (), 'data')
 
92
        self.assertRaises(errors.BadIndexKey, builder.add_node,
 
93
                '', (), 'data')
92
94
 
93
95
    def test_add_node_bad_data(self):
94
96
        builder = GraphIndexBuilder()