def test_single_entry(self): """Function: test_single_entry Description: Test with single disconnect. Arguments: """ self.assertFalse(mysql_libs.disconnect(self.server))
def test_list_entry(self): """Function: test_list_entry Description: Test with disconnect in list. Arguments: """ self.assertFalse(mysql_libs.disconnect([]))
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]))
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))
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]))
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]))