예제 #1
0
    def test_single_entry(self):

        """Function:  test_single_entry

        Description:  Test with single disconnect.

        Arguments:

        """

        self.assertFalse(mysql_libs.disconnect(self.server))
예제 #2
0
    def test_list_entry(self):

        """Function:  test_list_entry

        Description:  Test with disconnect in list.

        Arguments:

        """

        self.assertFalse(mysql_libs.disconnect([]))
예제 #3
0
    def test_combo(self):

        """Function:  test_combo

        Description:  Test with combination of list and single instances.

        Arguments:

        """

        self.assertFalse(mysql_libs.disconnect(self.server,
                                               [self.server2, self.server3]))
예제 #4
0
    def test_single_no_conn(self):

        """Function:  test_single_no_conn

        Description:  Test with database with no connection.

        Arguments:

        """

        self.server.conn = None

        self.assertFalse(mysql_libs.disconnect(self.server))
예제 #5
0
    def test_list_no_conn2(self):

        """Function:  test_list_no_conn2

        Description:  Test with database with no connection in list.

        Arguments:

        """

        self.server.conn = None

        self.assertFalse(mysql_libs.disconnect([self.server, self.server2]))
예제 #6
0
    def test_combo_no_conn(self):

        """Function:  test_combo_no_conn

        Description:  Test with combination and no connections.

        Arguments:

        """

        self.server4.conn = None

        self.assertFalse(mysql_libs.disconnect(self.server, self.server4,
                                               [self.server2, self.server3]))