Mercurial > p > roundup > code
diff test/test_indexer.py @ 5649:f8893e1cde0d
assert_ is depricated. Replacing with assertTrue to reduce logs in travisci.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 15 Mar 2019 20:29:00 -0400 |
| parents | d26921b851c3 |
| children | 0db2621b6fee |
line wrap: on
line diff
--- a/test/test_indexer.py Fri Mar 15 17:27:31 2019 -0400 +++ b/test/test_indexer.py Fri Mar 15 20:29:00 2019 -0400 @@ -105,7 +105,7 @@ def test_stopwords(self): """Test that we can find a text with a stopword in it.""" stopword = "with" - self.assert_(self.dex.is_stopword(stopword.upper())) + self.assertTrue(self.dex.is_stopword(stopword.upper())) self.dex.add_text(('test', '1', 'bar'), '%s hello world' % stopword) self.dex.add_text(('test', '2', 'bar'), 'blah a %s world' % stopword) self.dex.add_text(('test', '3', 'bar'), 'blah Blub river')
