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

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

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

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