@@ -79,7 +79,7 @@ def setUp(self):
79
79
invalidate_cache = True ,
80
80
)
81
81
self .config ['topic_prefix' ] = 'org.fedoraproject'
82
- self .config ['topic_prefix_re' ] = '^org\.fedoraproject\.(dev|stg|prod)'
82
+ self .config ['topic_prefix_re' ] = r '^org\.fedoraproject\.(dev|stg|prod)'
83
83
84
84
@skip_if_fedmsg_meta_FI_is_present
85
85
def test_for_no_plugins (self ):
@@ -108,7 +108,7 @@ def setUp(self):
108
108
invalidate_cache = True ,
109
109
)
110
110
self .config ['topic_prefix' ] = 'org.fedoraproject'
111
- self .config ['topic_prefix_re' ] = '^org\.fedoraproject\.(dev|stg|prod)'
111
+ self .config ['topic_prefix_re' ] = r '^org\.fedoraproject\.(dev|stg|prod)'
112
112
113
113
class MyGitProcessor (fedmsg .meta .base .BaseProcessor ):
114
114
__name__ = 'git'
@@ -141,7 +141,7 @@ def test_processor_handle_empty_subtopic(self):
141
141
'topic' : 'org.fedoraproject.dev.git' ,
142
142
}
143
143
result = self .proc .handle_msg (fake_message , ** self .config )
144
- assert result is "" , "Proc said it couldn't handle the msg."
144
+ assert result == "" , "Proc said it couldn't handle the msg."
145
145
146
146
147
147
class Base (unittest .TestCase ):
@@ -167,7 +167,7 @@ def setUp(self):
167
167
invalidate_cache = True ,
168
168
)
169
169
self .config ['topic_prefix' ] = 'org.fedoraproject'
170
- self .config ['topic_prefix_re' ] = '^org\.fedoraproject\.(dev|stg|prod)'
170
+ self .config ['topic_prefix_re' ] = r '^org\.fedoraproject\.(dev|stg|prod)'
171
171
fedmsg .meta .make_processors (** self .config )
172
172
173
173
self .maxDiff = None
@@ -402,7 +402,7 @@ def setUp(self):
402
402
invalidate_cache = True ,
403
403
)
404
404
self .config ['topic_prefix' ] = 'org.fedoraproject'
405
- self .config ['topic_prefix_re' ] = '^org\.fedoraproject\.(dev|stg|prod)'
405
+ self .config ['topic_prefix_re' ] = r '^org\.fedoraproject\.(dev|stg|prod)'
406
406
fedmsg .meta .make_processors (** self .config )
407
407
408
408
# Delete the msg_ids field because it is bulky and I don't want to
@@ -443,7 +443,7 @@ def setUp(self):
443
443
invalidate_cache = True ,
444
444
)
445
445
self .config ['topic_prefix' ] = 'org.fedoraproject'
446
- self .config ['topic_prefix_re' ] = '^org\.fedoraproject\.(dev|stg|prod)'
446
+ self .config ['topic_prefix_re' ] = r '^org\.fedoraproject\.(dev|stg|prod)'
447
447
448
448
self .conglomerator = fedmsg .meta .base .BaseConglomerator
449
449
0 commit comments