Changeset 48
- Timestamp:
- 23/08/08 07:42:00 (3 months ago)
- Files:
-
- 1 modified
-
trunk/test/test.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/test.py
r46 r48 21 21 # All tests require warnings to be raised 22 22 self.raise_warnings(True) 23 24 self.temp_image = 'temp.png' 25 26 def tearDown(self): 27 if os.exists(self.temp_image): 28 os.unlink(self.temp_image) 23 29 24 30 def raise_warnings(self, rw): … … 116 122 return 117 123 118 fn = 'temp.png' 119 chart.download(fn) 120 status, string = PyQrcodec.decode(fn) 124 chart.download(self.temp_image) 125 status, string = PyQrcodec.decode(self.temp_image) 121 126 self.assertTrue(status) 122 127 self.assertEquals(text, string) … … 147 152 148 153 def test_validate_utf8(self): 149 text = 'ããã«ã¡ã¯äžç' # Hello world in Japanese UTF 8154 text = 'ããã«ã¡ã¯äžç' # Hello world in Japanese UTF-8 150 155 chart = gc.QRChart(100, 100) 151 156 chart.add_data(text) … … 163 168 '?cht=qr&chs=100x100&chl=%82%B1%82%F1%82%C9' \ 164 169 '%82%BF%82%CD%90%A2%8AE&choe=Shift_JIS&chld=H|0') 165 chart.download( 'temp.png')170 chart.download(self.temp_image) 166 171 167 172