Example #1
0
 def test_startswith_none(self):
     
     result = strutils.startswith(None, "Main String is None.")
     self.assertFalse(result, 'Expected false match.')
Example #2
0
 def test_startswith_mismatch(self):
     
     result = strutils.startswith("Start Mismatch 12345", "start")
     self.assertFalse(result, 'Expected false match.')
Example #3
0
 def test_startswith_match(self):
     
     result = strutils.startswith("Start12345", "Start")
     self.assertTrue(result, 'Expected true match.')
Example #4
0
    def test_startswith_none(self):

        result = strutils.startswith(None, "Main String is None.")
        self.assertFalse(result, 'Expected false match.')
Example #5
0
    def test_startswith_mismatch(self):

        result = strutils.startswith("Start Mismatch 12345", "start")
        self.assertFalse(result, 'Expected false match.')
Example #6
0
    def test_startswith_match(self):

        result = strutils.startswith("Start12345", "Start")
        self.assertTrue(result, 'Expected true match.')