File: tests.out

package info (click to toggle)
python-pcs 0.5%2Bdebian-1.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 572 kB
  • ctags: 385
  • sloc: python: 2,605; sh: 115; makefile: 62
file content (193 lines) | stat: -rw-r--r-- 5,425 bytes parent folder | download | duplicates (3)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
boundstest.py
....
----------------------------------------------------------------------
Ran 4 tests in 0.002s

OK
chaintest.py
.F
======================================================================
FAIL: Test whether or not the chain method of the base class works.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "chaintest.py", line 84, in test_chain_read
    "strings not equal \ngot\n%s\nexpected\n%s" %
AssertionError: strings not equal 
got
Localhost
type 2
 IPv4
version 4
hlen 5
tos 0
length 84
id 59067
flags 0
offset 0
ttl 64
protocol 1
checksum 0
src 127.0.0.1
dst 127.0.0.1
 ICMPv4
type 8
code 0
checksum 60550
 None 
expected
Localhost
type 2
 IPv4
version 4
hlen 5
tos 0
length 84
id 59067
flags 0
offset 0
ttl 64
protocol 1
checksum 0
src 127.0.0.1
dst 127.0.0.1
 ICMPv4
type 8
code 0
checksum 60550

----------------------------------------------------------------------
Ran 2 tests in 0.003s

FAILED (failures=1)
2
30
connectortest.py
.E.
======================================================================
ERROR: Test live injection and reception.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "connectortest.py", line 116, in test_pcap_live
    ping = ip.data
AttributeError: 'NoneType' object has no attribute 'data'

----------------------------------------------------------------------
Ran 3 tests in 0.524s

FAILED (errors=1)
dnstest.py
EEEE
======================================================================
ERROR: test_dns (__main__.dnsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "dnstest.py", line 95, in test_dns
    self.assertEqual(dns.name, dnsnew.name, "name not equal")
AttributeError: 'dnsquery' object has no attribute 'name'

======================================================================
ERROR: This test reads from a pre-stored pcap file generated with tcpdump and ping on the loopback interface.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "dnstest.py", line 119, in test_dns_read
    file = pcap.pcap("dns.out")
  File "pcap.pyx", line 206, in pcap.pcap.__init__
OSError: BIOCSETIF: dns.out: Device not configured

======================================================================
ERROR: Test the underlying __compare__ functionality of the
----------------------------------------------------------------------
Traceback (most recent call last):
  File "dnstest.py", line 137, in test_udpv4_compare
    udp1 = udpv4(packet[file.dloff:len(packet)])
NameError: global name 'udpv4' is not defined

======================================================================
ERROR: This test reads from a pre-stored pcap file generated with
----------------------------------------------------------------------
Traceback (most recent call last):
  File "dnstest.py", line 153, in test_udpv4_print
    udp = udpv4(packet[file.dloff:len(packet)])
NameError: global name 'udpv4' is not defined

----------------------------------------------------------------------
Ran 4 tests in 0.002s

FAILED (errors=4)
ethertest.py
.......
----------------------------------------------------------------------
Ran 7 tests in 0.003s

OK
icmpv4test.py
..E..
======================================================================
ERROR: test_icmpv4_ping (__main__.icmpTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "icmpv4test.py", line 144, in test_icmpv4_ping
    icmp.checksum = icmp_packet.calc_checksum()
  File "/opt/local/lib/python2.4/site-packages/pcs/__init__.py", line 453, in __setattr__
    field.bounds(value)
  File "/opt/local/lib/python2.4/site-packages/pcs/__init__.py", line 188, in bounds
    raise FieldBoundsError, "Value must be between 0 and %d" % (2 ** self.width - 1)
FieldBoundsError: 'Value must be between 0 and 65535'

----------------------------------------------------------------------
Ran 5 tests in 0.004s

FAILED (errors=1)
ipv4test.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.004s

OK
ipv6test.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.002s

OK
printtest.py
.......
----------------------------------------------------------------------
Ran 7 tests in 0.003s

OK
tcpv4test.py
..F.
======================================================================
FAIL: This test reads from a pre-stored pcap file generated with
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tcpv4test.py", line 153, in test_ipv4_print
    "strings are not equal \nexpected %s \ngot %s " %
AssertionError: strings are not equal 
expected version 4
hlen 5
tos 0
length 84
id 59067
flags 0
offset 0
ttl 64
protocol 1
checksum 0
src 127.0.0.1
dst 127.0.0.1
 
got <IPv4: hlen: 5, protocol: 1, src: 2130706433, tos: 0, dst: 2130706433, ttl: 64, length: 84, version: 4, flags: 0, offset: 0, checksum: 0, id: 59067> 

----------------------------------------------------------------------
Ran 4 tests in 0.004s

FAILED (failures=1)
tlv.py
udpv4test.py
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK