Skip to content

Commit

Permalink
Stop using deprecated assert methods
Browse files Browse the repository at this point in the history
  • Loading branch information
multimeric committed Nov 20, 2017
1 parent d616258 commit f795e57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/test_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_outputs(self):
self.assertEqual(len(results), 2 * len(self.ser), 'A Column produces the wrong number of errors')
for i in range(2):
in_row = [r for r in results if r.row == i]
self.assertEquals(len(in_row), 2, 'A Column does not report both errors for every row')
self.assertEqual(len(in_row), 2, 'A Column does not report both errors for every row')


class AllowEmptyColumn(unittest.TestCase):
Expand Down
6 changes: 3 additions & 3 deletions test/test_validation_warning.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def test_shows_row_col(self):
"""
v = ValidationWarning(self.MESSAGE, '', 0, '')
vs = str(v)
self.assertRegexpMatches(vs, 'row')
self.assertRegexpMatches(vs, self.MESSAGE)
self.assertRegexpMatches(vs, 'column')
self.assertRegex(vs, 'row')
self.assertRegex(vs, self.MESSAGE)
self.assertRegex(vs, 'column')

def test_no_row_col(self):
"""
Expand Down

0 comments on commit f795e57

Please sign in to comment.