Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 5648:a4514df51ded | 5649:f8893e1cde0d |
|---|---|
| 103 self.assertSeqEqual(self.dex.find(['world']), [('test', '2', 'foo')]) | 103 self.assertSeqEqual(self.dex.find(['world']), [('test', '2', 'foo')]) |
| 104 | 104 |
| 105 def test_stopwords(self): | 105 def test_stopwords(self): |
| 106 """Test that we can find a text with a stopword in it.""" | 106 """Test that we can find a text with a stopword in it.""" |
| 107 stopword = "with" | 107 stopword = "with" |
| 108 self.assert_(self.dex.is_stopword(stopword.upper())) | 108 self.assertTrue(self.dex.is_stopword(stopword.upper())) |
| 109 self.dex.add_text(('test', '1', 'bar'), '%s hello world' % stopword) | 109 self.dex.add_text(('test', '1', 'bar'), '%s hello world' % stopword) |
| 110 self.dex.add_text(('test', '2', 'bar'), 'blah a %s world' % stopword) | 110 self.dex.add_text(('test', '2', 'bar'), 'blah a %s world' % stopword) |
| 111 self.dex.add_text(('test', '3', 'bar'), 'blah Blub river') | 111 self.dex.add_text(('test', '3', 'bar'), 'blah Blub river') |
| 112 self.dex.add_text(('test', '4', 'bar'), 'blah river %s' % stopword) | 112 self.dex.add_text(('test', '4', 'bar'), 'blah river %s' % stopword) |
| 113 self.assertSeqEqual(self.dex.find(['with','world']), | 113 self.assertSeqEqual(self.dex.find(['with','world']), |
