@@ -25,11 +25,11 @@ def bughandler(bug, data):
25
25
bugzilla .Bugzilla (12345 , bughandler = bughandler , bugdata = bug ).get_data ().wait ()
26
26
27
27
self .assertEqual (bug ["id" ], 12345 )
28
- self .assertEqual (bug ["resolution" ], u "FIXED" )
29
- self .
assertEqual (
bug [
"assigned_to" ],
u "[email protected] ")
28
+ self .assertEqual (bug ["resolution" ], "FIXED" )
29
+ self .
assertEqual (
bug [
"assigned_to" ],
"[email protected] " )
30
30
self .assertEqual (
31
31
bug ["summary" ],
32
- u "[DOGFOOD] Unable to Forward a message received as an Inline page or an attachment" ,
32
+ "[DOGFOOD] Unable to Forward a message received as an Inline page or an attachment" ,
33
33
)
34
34
35
35
@responses .activate
@@ -43,18 +43,18 @@ def bughandler(bug, data):
43
43
).get_data ().wait ()
44
44
45
45
self .assertEqual (bugs [12345 ]["id" ], 12345 )
46
- self .assertEqual (bugs [12345 ]["resolution" ], u "FIXED" )
47
- self .
assertEqual (
bugs [
12345 ][
"assigned_to" ],
u "[email protected] ")
46
+ self .assertEqual (bugs [12345 ]["resolution" ], "FIXED" )
47
+ self .
assertEqual (
bugs [
12345 ][
"assigned_to" ],
"[email protected] " )
48
48
self .assertEqual (
49
49
bugs [12345 ]["summary" ],
50
- u "[DOGFOOD] Unable to Forward a message received as an Inline page or an attachment" ,
50
+ "[DOGFOOD] Unable to Forward a message received as an Inline page or an attachment" ,
51
51
)
52
52
53
53
self .assertEqual (bugs [12346 ]["id" ], 12346 )
54
- self .assertEqual (bugs [12346 ]["resolution" ], u "FIXED" )
55
- self .
assertEqual (
bugs [
12346 ][
"assigned_to" ],
u "[email protected] ")
54
+ self .assertEqual (bugs [12346 ]["resolution" ], "FIXED" )
55
+ self .
assertEqual (
bugs [
12346 ][
"assigned_to" ],
"[email protected] " )
56
56
self .assertEqual (
57
- bugs [12346 ]["summary" ], u "nsOutputFileStream should buffer the output"
57
+ bugs [12346 ]["summary" ], "nsOutputFileStream should buffer the output"
58
58
)
59
59
60
60
@responses .activate
@@ -75,20 +75,20 @@ def bughandler2(bug, data):
75
75
76
76
for bugs in [bugs1 , bugs2 ]:
77
77
self .assertEqual (bugs [12345 ]["id" ], 12345 )
78
- self .assertEqual (bugs [12345 ]["resolution" ], u "FIXED" )
78
+ self .assertEqual (bugs [12345 ]["resolution" ], "FIXED" )
79
79
self .assertEqual (
80
- bugs [
12345 ][
"assigned_to" ],
u "[email protected] "
80
+ bugs [
12345 ][
"assigned_to" ],
"[email protected] "
81
81
)
82
82
self .assertEqual (
83
83
bugs [12345 ]["summary" ],
84
- u "[DOGFOOD] Unable to Forward a message received as an Inline page or an attachment" ,
84
+ "[DOGFOOD] Unable to Forward a message received as an Inline page or an attachment" ,
85
85
)
86
86
87
87
self .assertEqual (bugs [12346 ]["id" ], 12346 )
88
- self .assertEqual (bugs [12346 ]["resolution" ], u "FIXED" )
89
- self .
assertEqual (
bugs [
12346 ][
"assigned_to" ],
u "[email protected] ")
88
+ self .assertEqual (bugs [12346 ]["resolution" ], "FIXED" )
89
+ self .
assertEqual (
bugs [
12346 ][
"assigned_to" ],
"[email protected] " )
90
90
self .assertEqual (
91
- bugs [12346 ]["summary" ], u "nsOutputFileStream should buffer the output"
91
+ bugs [12346 ]["summary" ], "nsOutputFileStream should buffer the output"
92
92
)
93
93
94
94
@responses .activate
@@ -112,20 +112,20 @@ def bughandler3(bug, data):
112
112
113
113
for bugs in [bugs1 , bugs2 , bugs3 ]:
114
114
self .assertEqual (bugs [12345 ]["id" ], 12345 )
115
- self .assertEqual (bugs [12345 ]["resolution" ], u "FIXED" )
115
+ self .assertEqual (bugs [12345 ]["resolution" ], "FIXED" )
116
116
self .assertEqual (
117
- bugs [
12345 ][
"assigned_to" ],
u "[email protected] "
117
+ bugs [
12345 ][
"assigned_to" ],
"[email protected] "
118
118
)
119
119
self .assertEqual (
120
120
bugs [12345 ]["summary" ],
121
- u "[DOGFOOD] Unable to Forward a message received as an Inline page or an attachment" ,
121
+ "[DOGFOOD] Unable to Forward a message received as an Inline page or an attachment" ,
122
122
)
123
123
124
124
self .assertEqual (bugs [12346 ]["id" ], 12346 )
125
- self .assertEqual (bugs [12346 ]["resolution" ], u "FIXED" )
126
- self .
assertEqual (
bugs [
12346 ][
"assigned_to" ],
u "[email protected] ")
125
+ self .assertEqual (bugs [12346 ]["resolution" ], "FIXED" )
126
+ self .
assertEqual (
bugs [
12346 ][
"assigned_to" ],
"[email protected] " )
127
127
self .assertEqual (
128
- bugs [12346 ]["summary" ], u "nsOutputFileStream should buffer the output"
128
+ bugs [12346 ]["summary" ], "nsOutputFileStream should buffer the output"
129
129
)
130
130
131
131
@responses .activate
@@ -153,9 +153,9 @@ def bughandler2(bug, data):
153
153
self .assertEqual (bugs1 [12345 ]["id" ], 12345 )
154
154
self .assertEqual (bugs1 [12346 ]["id" ], 12346 )
155
155
self .assertEqual (bugs2 [12345 ]["id" ], 12345 )
156
- self .assertEqual (bugs2 [12345 ]["resolution" ], u "FIXED" )
156
+ self .assertEqual (bugs2 [12345 ]["resolution" ], "FIXED" )
157
157
self .assertEqual (bugs2 [12346 ]["id" ], 12346 )
158
- self .assertEqual (bugs2 [12346 ]["resolution" ], u "FIXED" )
158
+ self .assertEqual (bugs2 [12346 ]["resolution" ], "FIXED" )
159
159
160
160
@responses .activate
161
161
def test_queries (self ):
@@ -173,18 +173,18 @@ def bughandler(data):
173
173
bugzilla .Bugzilla (queries = queries , bughandler = bughandler ).wait ()
174
174
175
175
self .assertEqual (bugs [12345 ]["id" ], 12345 )
176
- self .assertEqual (bugs [12345 ]["resolution" ], u "FIXED" )
177
- self .
assertEqual (
bugs [
12345 ][
"assigned_to" ],
u "[email protected] ")
176
+ self .assertEqual (bugs [12345 ]["resolution" ], "FIXED" )
177
+ self .
assertEqual (
bugs [
12345 ][
"assigned_to" ],
"[email protected] " )
178
178
self .assertEqual (
179
179
bugs [12345 ]["summary" ],
180
- u "[DOGFOOD] Unable to Forward a message received as an Inline page or an attachment" ,
180
+ "[DOGFOOD] Unable to Forward a message received as an Inline page or an attachment" ,
181
181
)
182
182
183
183
self .assertEqual (bugs [12346 ]["id" ], 12346 )
184
- self .assertEqual (bugs [12346 ]["resolution" ], u "FIXED" )
185
- self .
assertEqual (
bugs [
12346 ][
"assigned_to" ],
u "[email protected] ")
184
+ self .assertEqual (bugs [12346 ]["resolution" ], "FIXED" )
185
+ self .
assertEqual (
bugs [
12346 ][
"assigned_to" ],
"[email protected] " )
186
186
self .assertEqual (
187
- bugs [12346 ]["summary" ], u "nsOutputFileStream should buffer the output"
187
+ bugs [12346 ]["summary" ], "nsOutputFileStream should buffer the output"
188
188
)
189
189
190
190
@responses .activate
@@ -309,7 +309,7 @@ def historyhandler(bug, data):
309
309
310
310
self .assertEqual (data ["bug" ]["id" ], 12345 )
311
311
self .assertEqual (len (data ["comment" ]), 19 )
312
- self .assertTrue (data ["comment" ][0 ]["text" ].startswith (u "Steps to reproduce" ))
312
+ self .assertTrue (data ["comment" ][0 ]["text" ].startswith ("Steps to reproduce" ))
313
313
self .assertEqual (len (data ["history" ]["history" ]), 24 )
314
314
315
315
@responses .activate
@@ -336,7 +336,7 @@ def historyhandler(bug, data):
336
336
337
337
self .assertEqual (data ["bug" ]["id" ], 12345 )
338
338
self .assertEqual (len (data ["comment" ]), 19 )
339
- self .assertTrue (data ["comment" ][0 ]["text" ].startswith (u "Steps to reproduce" ))
339
+ self .assertTrue (data ["comment" ][0 ]["text" ].startswith ("Steps to reproduce" ))
340
340
self .assertEqual (len (data ["history" ]["history" ]), 24 )
341
341
342
342
@responses .activate
@@ -609,7 +609,7 @@ def attachmenthandler(bug, bugid, data):
609
609
610
610
self .assertEqual (data ["bug" ]["id" ], 12345 )
611
611
self .assertEqual (len (data ["comment" ]), 19 )
612
- self .assertTrue (data ["comment" ][0 ]["text" ].startswith (u "Steps to reproduce" ))
612
+ self .assertTrue (data ["comment" ][0 ]["text" ].startswith ("Steps to reproduce" ))
613
613
self .assertEqual (len (data ["history" ]["history" ]), 24 )
614
614
self .assertEqual (len (data ["attachment" ]), 1 )
615
615
self .assertEqual (data ["attachment" ][0 ]["description" ], "Some patch." )
@@ -645,7 +645,7 @@ def attachmenthandler(bug, bugid, data):
645
645
646
646
self .assertEqual (data ["bug" ]["id" ], 12345 )
647
647
self .assertEqual (len (data ["comment" ]), 19 )
648
- self .assertTrue (data ["comment" ][0 ]["text" ].startswith (u "Steps to reproduce" ))
648
+ self .assertTrue (data ["comment" ][0 ]["text" ].startswith ("Steps to reproduce" ))
649
649
self .assertEqual (len (data ["history" ]["history" ]), 24 )
650
650
self .assertEqual (len (data ["attachment" ]), 1 )
651
651
self .assertEqual (data ["attachment" ][0 ]["description" ], "Some patch." )
0 commit comments