예제 #1
0
    def test_multiple_entries(self):

        """Function:  test_multiple_entries

        Description:  Test with multiple user entries.

        Arguments:

        """

        self.assertEqual(cmds_gen.create_cfg_array(self.cfg_file4,
                                                   cfg_path=self.cfg_path),
                         self.base3)
예제 #2
0
    def test_empty_file(self):

        """Function:  test_empty_file

        Description:  Test with empty file.

        Arguments:

        """

        self.assertEqual(cmds_gen.create_cfg_array(self.cfg_file1,
                                                   cfg_path=self.cfg_path),
                         self.base)
예제 #3
0
    def test_single_entry2(self):

        """Function:  test_single_entry

        Description:  Test with single user entry.

        Arguments:

        """

        self.assertEqual(cmds_gen.create_cfg_array(self.cfg_file5,
                                                   cfg_path=self.cfg_path),
                         self.base2)
예제 #4
0
    def test_no_data(self):

        """Function:  test_no_data

        Description:  Test with no data in file, only comments.

        Arguments:

        """

        self.assertEqual(cmds_gen.create_cfg_array(self.cfg_file2,
                                                   cfg_path=self.cfg_path),
                         self.base)