Example #1
0
 def test_before_no_match(self):
     
     result = strutils.before('ABC123', 'break')
     self.assertEquals('ABC123', result)
Example #2
0
    def test_before_none(self):

        result = strutils.before(None, 'break')
        self.assertIsNone(result)
Example #3
0
 def test_before_none(self):
     
     result = strutils.before(None, 'break')
     self.assertIsNone(result)
Example #4
0
    def test_before_no_match(self):

        result = strutils.before('ABC123', 'break')
        self.assertEquals('ABC123', result)