Conditions | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
8 | def test_calculate_signature(self): |
||
9 | from wechatpy.pay import calculate_signature |
||
10 | |||
11 | api_key = '192006250b4c09247ec02edce69f6a2d' |
||
12 | params = { |
||
13 | 'test1': 'test1', |
||
14 | 'test2': 'test2', |
||
15 | } |
||
16 | expected = '1E3A8D73B5A4AEE787C0F68B5DAB8520' |
||
17 | sign = calculate_signature(params, api_key) |
||
18 | self.assertEqual(expected, sign) |
||
19 | |||
47 |