~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_rio.py

  • Committer: Ian Clatworthy
  • Date: 2010-02-19 03:02:07 UTC
  • mto: (4797.23.1 integration-2.1)
  • mto: This revision was merged to the branch mainline in revision 5055.
  • Revision ID: ian.clatworthy@canonical.com-20100219030207-zpbzx021zavx4sqt
What's New in 2.1 - a summary of changes since 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
188
188
        self.assertEqual(s, None)
189
189
        self.assertTrue(s is None)
190
190
 
191
 
    def test_read_nul_byte(self):
192
 
        """File consisting of a nul byte causes an error."""
193
 
        self.assertRaises(ValueError, read_stanza, ['\0'])
194
 
 
195
 
    def test_read_nul_bytes(self):
196
 
        """File consisting of many nul bytes causes an error."""
197
 
        self.assertRaises(ValueError, read_stanza, ['\0' * 100])
198
 
 
199
191
    def test_read_iter(self):
200
192
        """Read several stanzas from file"""
201
193
        tmpf = TemporaryFile()