Пример #1
0
    def test_empty_ln_marker(self):

        """Function:  test_empty_ln_marker

        Description:  Empty line marker check.

        Arguments:

        """

        check_log.find_marker(self.log)

        self.assertEqual(self.log.loglist, self.result3)
Пример #2
0
    def test_no_find_marker(self):

        """Function:  test_no_find_marker

        Description:  Does not find the marker.

        Arguments:

        """

        self.log.marker = "This is the tenth line"
        check_log.find_marker(self.log)

        self.assertEqual(self.log.loglist, self.result3)
Пример #3
0
    def test_find_marker(self):

        """Function:  test_find_marker

        Description:  Finds the line marker.

        Arguments:

        """

        self.log.marker = "This is the third line"
        check_log.find_marker(self.log)

        self.assertEqual(self.log.loglist, self.result)
Пример #4
0
    def test_find_marker_2(self):

        """Function:  test_find_marker_2

        Description:  Finds the line marker.

        Arguments:

        """

        self.log.marker = self.line6
        check_log.find_marker(self.log)

        self.assertEqual(self.log.loglist, self.result2)