~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_store.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-14 16:16:53 UTC
  • mto: (1946.2.6 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1919.
  • Revision ID: john@arbash-meinel.com-20060814161653-54cdcdadcd4e9003
Remove bogus entry from BRANCH.TODO

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 Canonical Ltd
 
1
# Copyright (C) 2005 by Canonical Development 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
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
 
 
49
41
    def fill_store(self, store):
50
42
        store.add(StringIO('hello'), 'a')
51
43
        store.add(StringIO('other'), 'b')
56
48
        """Test copying"""
57
49
        os.mkdir('a')
58
50
        store_a = self.get_store('a')
59
 
        store_a.add(StringIO('foo'), '1')
 
51
        store_a.add('foo', '1')
60
52
        os.mkdir('b')
61
53
        store_b = self.get_store('b')
62
54
        store_b.copy_all_ids(store_a)