comparison test/test_templating.py @ 5793:6aad7b194e63

replace assertEquals wth assertEqual.
author John Rouillard <rouilj@ieee.org>
date Mon, 10 Jun 2019 21:24:28 -0400
parents 97e2125e064c
children 10747e4e4ec4
comparison
equal deleted inserted replaced
5792:db429c75caec 5793:6aad7b194e63
224 ''' 224 '''
225 def t(s, nothing=False, **groups): 225 def t(s, nothing=False, **groups):
226 m = StringHTMLProperty.hyper_re.search(s) 226 m = StringHTMLProperty.hyper_re.search(s)
227 if nothing: 227 if nothing:
228 if m: 228 if m:
229 self.assertEquals(m, None, '%r matched (%r)'%(s, m.groupdict())) 229 self.assertEqual(m, None, '%r matched (%r)'%(s, m.groupdict()))
230 return 230 return
231 else: 231 else:
232 self.assertNotEquals(m, None, '%r did not match'%s) 232 self.assertNotEquals(m, None, '%r did not match'%s)
233 d = m.groupdict() 233 d = m.groupdict()
234 for g in groups: 234 for g in groups:
235 self.assertEquals(d[g], groups[g], '%s %r != %r in %r'%(g, d[g], 235 self.assertEqual(d[g], groups[g], '%s %r != %r in %r'%(g, d[g],
236 groups[g], s)) 236 groups[g], s))
237 237
238 #t('123.321.123.321', 'url') 238 #t('123.321.123.321', 'url')
239 t('http://localhost/', url='http://localhost/') 239 t('http://localhost/', url='http://localhost/')
240 t('http://roundup.net/', url='http://roundup.net/') 240 t('http://roundup.net/', url='http://roundup.net/')

Roundup Issue Tracker: http://roundup-tracker.org/