@@ -79,7 +79,7 @@ def setUp(self):
7979 invalidate_cache = True ,
8080 )
8181 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)'
8383
8484 @skip_if_fedmsg_meta_FI_is_present
8585 def test_for_no_plugins (self ):
@@ -108,7 +108,7 @@ def setUp(self):
108108 invalidate_cache = True ,
109109 )
110110 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)'
112112
113113 class MyGitProcessor (fedmsg .meta .base .BaseProcessor ):
114114 __name__ = 'git'
@@ -141,7 +141,7 @@ def test_processor_handle_empty_subtopic(self):
141141 'topic' : 'org.fedoraproject.dev.git' ,
142142 }
143143 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."
145145
146146
147147class Base (unittest .TestCase ):
@@ -167,7 +167,7 @@ def setUp(self):
167167 invalidate_cache = True ,
168168 )
169169 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)'
171171 fedmsg .meta .make_processors (** self .config )
172172
173173 self .maxDiff = None
@@ -402,7 +402,7 @@ def setUp(self):
402402 invalidate_cache = True ,
403403 )
404404 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)'
406406 fedmsg .meta .make_processors (** self .config )
407407
408408 # Delete the msg_ids field because it is bulky and I don't want to
@@ -443,7 +443,7 @@ def setUp(self):
443443 invalidate_cache = True ,
444444 )
445445 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)'
447447
448448 self .conglomerator = fedmsg .meta .base .BaseConglomerator
449449
0 commit comments