Example #1
0
 def test_ends_with_no_match(self):
     
     result = strutils.ends_with('ABC123', 'end')
     self.assertFalse(result)
Example #2
0
    def join_path(self, root_dir, file):

        if strutils.ends_with(root_dir, self.file_separator()):
            return root_dir + file
        else:
            return root_dir + self.file_separator() + file
Example #3
0
 def test_ends_with_match(self):
     
     result = strutils.ends_with('ABC123end', 'end')
     self.assertTrue(result)
Example #4
0
 def test_ends_with_none(self):
     
     result = strutils.ends_with(None, 'end')
     self.assertFalse(result)
Example #5
0
    def test_ends_with_no_match(self):

        result = strutils.ends_with('ABC123', 'end')
        self.assertFalse(result)
Example #6
0
    def test_ends_with_match(self):

        result = strutils.ends_with('ABC123end', 'end')
        self.assertTrue(result)
Example #7
0
    def test_ends_with_none(self):

        result = strutils.ends_with(None, 'end')
        self.assertFalse(result)