Example #1
0
    def test_multi_item(self):
        """Function:  test_multi_item

        Description:  Test with multiple items in list.

        Arguments:

        """

        self.assertEqual(gen_libs.list_2_str(self.list2), self.res2)
Example #2
0
    def test_field_del(self):
        """Function:  test_field_del

        Description:  Test with different field delimiter.

        Arguments:

        """

        self.assertEqual(gen_libs.list_2_str(self.list2, " "), self.res3)
Example #3
0
    def test_empty_list(self):
        """Function:  test_empty_list

        Description:  Test with empty list.

        Arguments:

        """

        self.assertEqual(gen_libs.list_2_str(self.list0), self.res0)
Example #4
0
    def test_mixed_items(self):
        """Function:  test_mixed_items

        Description:  Test with mixture of strings and integers.

        Arguments:

        """

        self.assertEqual(gen_libs.list_2_str(self.list3), self.res4)
Example #5
0
    def test_one_item(self):
        """Function:  test_one_item

        Description:  Test with one item in list.

        Arguments:

        """

        self.assertEqual(gen_libs.list_2_str(self.list1), self.res1)