| 1 | # -*- coding: utf-8 -*- |
| 2 | |
| 3 | """ |
| 4 | Test fix of bug described in GitHub Issue #19. |
| 5 | """ |
| 6 | |
| 7 | import base64 |
| 8 | |
| 9 | from sure import expect |
| 10 | |
| 11 | |
| 12 | def test_issue_136(): |
| 13 | "Test for unicode error when comparing bytes" |
| 14 | data_b64 = ( |
| 15 | 'MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg11zwkcKSsSppm8Du13' |
| 16 | 'je6lmwR7hEVeKMw5L8NQEN/CehRANCAAT9RzcGN/S9yN7mWP+xfLGEuw/TyHRBiW4c' |
| 17 | 'GE6AczRgske/P8eq8trs8unSJPCp0YPKrmCEcuotL/8BHQ4Y1AVK' |
| 18 | ) |
| 19 | |
| 20 | data = base64.b64decode(data_b64) |
| 21 | expect(data).should.be.equal(data) |