tests/timestripper_tests.py
Function test_last_match_and_replace
has 37 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
def test_last_match_and_replace(self):
"""Test that pattern matches and removes items correctly."""
txt_with_one_match = 'this string has 3000, 1999 and 3000 in it'
txt_with_two_match = 'this string has 1998, 1999 and 3000 in it'
txt_with_no_match = 'this string has no match'
XXX found Open
Open
self.assertEqual('this string has XXX, @@@@ and @@@@@@@ in it', txt)
- Exclude checks
XXX found Open
Open
txt_with_one_match = 'this string has XXX, YYY and février in it'
- Exclude checks
XXX found Open
Open
self.assertEqual('this string has XXX, YYY and @@@@@@@ in it', txt)
- Exclude checks
XXX found Open
Open
txt_with_two_match = 'this string has XXX, mars and février in it'
- Exclude checks