Exemplo n.º 1
0
 def test_ends_with_no_match(self):
     
     result = strutils.ends_with('ABC123', 'end')
     self.assertFalse(result)
Exemplo n.º 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
Exemplo n.º 3
0
 def test_ends_with_match(self):
     
     result = strutils.ends_with('ABC123end', 'end')
     self.assertTrue(result)
Exemplo n.º 4
0
 def test_ends_with_none(self):
     
     result = strutils.ends_with(None, 'end')
     self.assertFalse(result)
Exemplo n.º 5
0
    def test_ends_with_no_match(self):

        result = strutils.ends_with('ABC123', 'end')
        self.assertFalse(result)
Exemplo n.º 6
0
    def test_ends_with_match(self):

        result = strutils.ends_with('ABC123end', 'end')
        self.assertTrue(result)
Exemplo n.º 7
0
    def test_ends_with_none(self):

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