Пример #1
0
 def test_ends_with_no_match(self):
     
     result = strutils.ends_with('ABC123', 'end')
     self.assertFalse(result)
Пример #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
Пример #3
0
 def test_ends_with_match(self):
     
     result = strutils.ends_with('ABC123end', 'end')
     self.assertTrue(result)
Пример #4
0
 def test_ends_with_none(self):
     
     result = strutils.ends_with(None, 'end')
     self.assertFalse(result)
Пример #5
0
    def test_ends_with_no_match(self):

        result = strutils.ends_with('ABC123', 'end')
        self.assertFalse(result)
Пример #6
0
    def test_ends_with_match(self):

        result = strutils.ends_with('ABC123end', 'end')
        self.assertTrue(result)
Пример #7
0
    def test_ends_with_none(self):

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