예제 #1
0
    def test_multiple_space(self):

        """Function:  test_multiple_space

        Description:  Test with multiple spaces in string.

        Arguments:

        """

        self.assertEqual(gen_libs.rm_whitespace(self.data8), self.results2)
예제 #2
0
    def test_no_spaces(self):

        """Function:  test_no_spaces

        Description:  Test with no white spaces.

        Arguments:

        """

        self.assertEqual(gen_libs.rm_whitespace(self.data), self.results)
예제 #3
0
    def test_empty_string(self):

        """Function:  test_empty_string

        Description:  Test with empty data string.

        Arguments:

        """

        self.assertEqual(gen_libs.rm_whitespace(self.data9), self.results3)
예제 #4
0
    def test_end_space(self):

        """Function:  test_end_space

        Description:  Test with white space at end of string.

        Arguments:

        """

        self.assertEqual(gen_libs.rm_whitespace(self.data2), self.results)
예제 #5
0
    def test_middle_space(self):

        """Function:  test_middle_space

        Description:  Test with white space in middle of string.

        Arguments:

        """

        self.assertEqual(gen_libs.rm_whitespace(self.data4), self.results)
예제 #6
0
    def test_newline_space(self):

        """Function:  test_newline_space

        Description:  Test with newline character.

        Arguments:

        """

        self.assertEqual(gen_libs.rm_whitespace(self.data5), self.results4)
예제 #7
0
    def test_tab_space(self):

        """Function:  test_tab_space

        Description:  Test with tab character.

        Arguments:

        """

        self.assertEqual(gen_libs.rm_whitespace(self.data6), self.results5)
예제 #8
0
    def test_carriage_space(self):

        """Function:  test_carriage_space

        Description:  Test with carriage return character.

        Arguments:

        """

        self.assertEqual(gen_libs.rm_whitespace(self.data7), self.results6)