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