849
849
self.assertEquals(('references_ghost', 'line_c\n'), origins[2])
851
851
def test_readonly_mode(self):
853
853
factory = self.get_factory()
854
vf = factory('id', t, 0777, create=True, access_mode='w')
854
vf = factory('id', transport, 0777, create=True, access_mode='w')
856
856
self.assertRaises(errors.ReadOnlyError, vf.add_lines, 'base', [], [])
857
857
self.assertRaises(errors.ReadOnlyError,
858
858
vf.add_lines_with_ghosts,