/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_store.py

merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        f = store.get(fileid)
39
39
        self.assertEqual(f.read(), value)
40
40
 
 
41
    def test_add_str_deprecated(self):
 
42
        os.mkdir('a')
 
43
        store = self.get_store('a')
 
44
        self.callDeprecated(['Passing a string to Store.add'
 
45
                             ' was deprecated in version 0.11.'],
 
46
                            store.add, 'foo', '1')
 
47
        self.assertEqual('foo', store.get('1').read())
 
48
 
41
49
    def fill_store(self, store):
42
50
        store.add(StringIO('hello'), 'a')
43
51
        store.add(StringIO('other'), 'b')
48
56
        """Test copying"""
49
57
        os.mkdir('a')
50
58
        store_a = self.get_store('a')
51
 
        store_a.add('foo', '1')
 
59
        store_a.add(StringIO('foo'), '1')
52
60
        os.mkdir('b')
53
61
        store_b = self.get_store('b')
54
62
        store_b.copy_all_ids(store_a)