def test_disconnect(self): Connection.disconnect() connection_name_list = Connection.get_connection_name_list() connection_name = Connection.get_default_connection_name() self.assertEqual(['con'], connection_name_list) self.assertEqual(connection_name, 'con')
def tearDown(self): super(DocumentTest, self).tearDown() Connection.disconnect()