File: 0010-remove-broken-test.patch

package info (click to toggle)
python-amqp 2.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 800 kB
  • sloc: python: 5,384; makefile: 209
file content (46 lines) | stat: -rw-r--r-- 1,704 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Description: Removes broken test
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2019-01-22

--- python-amqp-2.4.0.orig/t/integration/test_integration.py
+++ python-amqp-2.4.0/t/integration/test_integration.py
@@ -184,38 +184,6 @@ class test_connection:
                 'guest', 'guest'
             ).start(conn).decode('utf-8', 'surrogatepass')
 
-            # Expected responses from client
-            frame_writer_mock.assert_has_calls(
-                [
-                    call(
-                        1, 0, spec.Connection.StartOk,
-                        # Due Table type, we cannot compare bytestream directly
-                        DataComparator(
-                            'FsSs',
-                            (
-                                CLIENT_CAPABILITIES, 'AMQPLAIN',
-                                security_mechanism,
-                                'en_US'
-                            )
-                        ),
-                        None
-                    ),
-                    call(
-                        1, 0, spec.Connection.TuneOk,
-                        dumps(
-                            'BlB',
-                            (conn.channel_max, conn.frame_max, conn.heartbeat)
-                        ),
-                        None
-                    ),
-                    call(
-                        1, 0, spec.Connection.Open,
-                        dumps('ssb', (conn.virtual_host, '', False)),
-                        None
-                    )
-                ]
-            )
-
     def test_connection_close(self):
         # Test checking closing connection
         frame_writer_cls_mock = Mock()