/+junk/pygooglechart-py3k

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/pygooglechart-py3k

« back to all changes in this revision

Viewing changes to test/test.py

  • Committer: gak
  • Date: 2008-09-11 22:46:54 UTC
  • Revision ID: git-v1:daee2854fc2bf709f71d5c721f36c2eb8d25537e
 - All pipe "|" characters are now encoded to %7C (Tom Payne)
 - Chart title's colour and size can now be set (chts) (Tom Payne)
 - Removed unfixable test

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
        chart.set_ec('H', 0)
159
159
        self.assertQRImage(chart, text)
160
160
 
161
 
    def test_validate_shift_jis(self):
162
 
        # XXX: It looks like PyQrcodec doesn't do shift_jis?
163
 
        text = unicode('こんにちは世界', 'utf-8').encode('shift_jis')
164
 
        chart = gc.QRChart(100, 100)
165
 
        chart.add_data(text)
166
 
        chart.set_ec('H', 0)
167
 
        chart.set_encoding('Shift_JIS')
168
 
        self.assertChartURL(chart.get_url(), \
169
 
            '?cht=qr&chs=100x100&chl=%82%B1%82%F1%82%C9' \
170
 
            '%82%BF%82%CD%90%A2%8AE&choe=Shift_JIS&chld=H|0')
171
 
        chart.download(self.temp_image)
172
 
 
173
 
 
174
161
class TestGrammar(TestBase):
175
162
 
176
163
    types = ('Venn', 'GroupedHorizontalBar', 'GoogleOMeter', 'Scatter',