3 | | def test_update_time_same(self):[[BR]] |
4 | | 315 # Unrestricted old-style update (to be removed soon)[[BR]] |
5 | | 316 tid = self.admin.ticket.create('test_update_time_same', '...', {})[[BR]] |
6 | | 317 tid, created, modified, attrs = self.admin.ticket.get(tid)[[BR]] |
7 | | 318 ts = attrs['_ts'][[BR]] |
8 | | 319 self.admin.ticket.update(tid, "comment1",[[BR]] |
9 | | 320 {'_ts': ts})[[BR]] |
10 | | 321 self.admin.ticket.delete(tid)[[BR]] |
11 | | 322 [[BR]] |
12 | | 323 # Update with 'action' to test new-style update.[[BR]] |
13 | | 324 tid = self.admin.ticket.create('test_update_time_same', '...', {})[[BR]] |
14 | | 325 tid, created, modified, attrs = self.admin.ticket.get(tid)[[BR]] |
| 3 | {{{#!python |
| 4 | def test_update_time_same(self): |
| 5 | 315 # Unrestricted old-style update (to be removed soon) |
| 6 | 316 tid = self.admin.ticket.create('test_update_time_same', '...', {}) |
| 7 | 317 tid, created, modified, attrs = self.admin.ticket.get(tid) |
| 8 | 318 ts = attrs['_ts'] |
| 9 | 319 self.admin.ticket.update(tid, "comment1", |
| 10 | 320 {'_ts': ts}) |
| 11 | 321 self.admin.ticket.delete(tid) |
| 12 | 322 |
| 13 | 323 # Update with 'action' to test new-style update. |
| 14 | 324 tid = self.admin.ticket.create('test_update_time_same', '...', {}) |
| 15 | 325 tid, created, modified, attrs = self.admin.ticket.get(tid) |
22 | | Traceback (most recent call last):[[BR]] |
23 | | File "<pyshell#12>", line 1, in <module>[[BR]] |
24 | | p.ticket.update(tid, "comment1", {'_ts': ts, 'action': 'leave'})[[BR]] |
25 | | File "C:\Python27\lib\xmlrpclib.py", line 1240, in __call__[[BR]] |
26 | | return self.__send(self.__name, args)[[BR]] |
27 | | File "C:\Python27\lib\xmlrpclib.py", line 1599, in __request[[BR]] |
28 | | verbose=self.__verbose[[BR]] |
29 | | File "C:\Python27\lib\xmlrpclib.py", line 1280, in request[[BR]] |
30 | | return self.single_request(host, handler, request_body, verbose)[[BR]] |
31 | | File "C:\Python27\lib\xmlrpclib.py", line 1313, in single_request[[BR]] |
32 | | return self.parse_response(response)[[BR]] |
33 | | File "C:\Python27\lib\xmlrpclib.py", line 1490, in parse_response[[BR]] |
34 | | return u.close()[[BR]] |
35 | | File "C:\Python27\lib\xmlrpclib.py", line 799, in close[[BR]] |
36 | | raise Fault(**self._stack[0])[[BR]] |
| 24 | {{{ |
| 25 | Traceback (most recent call last): |
| 26 | File "<pyshell#12>", line 1, in <module> |
| 27 | p.ticket.update(tid, "comment1", {'_ts': ts, 'action': 'leave'}) |
| 28 | File "C:\Python27\lib\xmlrpclib.py", line 1240, in __call__ |
| 29 | return self.__send(self.__name, args) |
| 30 | File "C:\Python27\lib\xmlrpclib.py", line 1599, in __request |
| 31 | verbose=self.__verbose |
| 32 | File "C:\Python27\lib\xmlrpclib.py", line 1280, in request |
| 33 | return self.single_request(host, handler, request_body, verbose) |
| 34 | File "C:\Python27\lib\xmlrpclib.py", line 1313, in single_request |
| 35 | return self.parse_response(response) |
| 36 | File "C:\Python27\lib\xmlrpclib.py", line 1490, in parse_response |
| 37 | return u.close() |
| 38 | File "C:\Python27\lib\xmlrpclib.py", line 799, in close |
| 39 | raise Fault(**self._stack[0]) |