1589
1594
self.assertRaises(errors.ExistingContent,
1590
1595
vf.add_lines, new_key, [], lines,
1598
vf.add_text, new_key, [], ''.join(lines),
1592
1600
# and no new version should have been added.
1593
1601
record = vf.get_record_stream([new_key], 'unordered', True).next()
1594
1602
self.assertEqual('absent', record.storage_kind)
1596
1610
def test_add_lines_return(self):
1597
1611
files = self.get_versionedfiles()
1598
1612
# save code by using the stock data insertion helper.