def test_before_no_match(self): result = strutils.before('ABC123', 'break') self.assertEquals('ABC123', result)
def test_before_none(self): result = strutils.before(None, 'break') self.assertIsNone(result)