/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_escaped_store.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        self.failUnlessExists('72/@%3a%3c%3e')
75
75
        self.assertEquals('surprise', text_store.get('@:<>').read())
76
76
 
77
 
        self.callDeprecated([osutils._file_id_warning],
78
 
                            text_store.add, StringIO('unicode'), u'\xe5')
79
 
        self.failUnlessExists('77/%c3%a5')
80
 
        self.assertEquals('unicode',
81
 
                          self.callDeprecated([osutils._file_id_warning],
82
 
                          text_store.get, u'\xe5').read())
83
 
        self.assertEquals('unicode', text_store.get('\xc3\xa5').read())
84
 
 
85
77
        text_store.add(StringIO('utf8'), '\xc2\xb5')
86
78
        self.failUnlessExists('77/%c2%b5')
87
79
        self.assertEquals('utf8', text_store.get('\xc2\xb5').read())
88
 
        self.assertEquals('utf8',
89
 
                          self.callDeprecated([osutils._file_id_warning],
90
 
                          text_store.get, u'\xb5').read())
91
80
 
92
81
    def test_weave(self):
93
82
        from bzrlib.store.versioned import WeaveStore
118
107
        self.failUnlessExists('72/@%3a%3c%3e.weave')
119
108
        check_text('@:<>', 'r', ['surprise'])
120
109
 
121
 
        self.callDeprecated([osutils._file_id_warning],
122
 
                            add_text, u'\xe5', 'r', ['unicode'], [], trans)
123
 
        self.failUnlessExists('77/%c3%a5.weave')
124
 
        self.callDeprecated([osutils._file_id_warning],
125
 
                            check_text, u'\xe5', 'r', ['unicode'])
126
 
        check_text('\xc3\xa5', 'r', ['unicode'])
127
 
 
128
110
        add_text('\xc2\xb5', 'r', ['utf8'], [], trans)
129
111
        self.failUnlessExists('77/%c2%b5.weave')
130
112
        check_text('\xc2\xb5', 'r', ['utf8'])
131
 
        self.callDeprecated([osutils._file_id_warning],
132
 
                            check_text, u'\xb5', 'r', ['utf8'])