Exemplo n.º 1
0
    def test_08(self):
        with self.assertRaises(TypeError):
            my_cls.is_starts_or_ends_with(self, 3, 3)

        log.debug("Test 8 : Passed")
Exemplo n.º 2
0
 def test_05(self):
     self.assertEqual(my_cls.is_starts_or_ends_with(self, "", ""),
                      "'mainstr' or/and 'substr' must not be empty.")
     log.debug("Test 5 : Passed")
Exemplo n.º 3
0
    def test_06(self):
        with self.assertRaises(TypeError):
            my_cls.is_starts_or_ends_with(self, "TestData", 3)

        log.debug("Test 6 : Passed")
Exemplo n.º 4
0
 def test_02(self):
     self.assertEqual(
         my_cls.is_starts_or_ends_with(self, "TestData", "Data"),
         "Given 'substr' is a suffix for 'mainstr'.")
     log.debug("Test 2 : Passed")