'Check if connection works
:return: bool'

def test(self):

    if self.connect(True):
        return True
    if self.error_msg:
        return (False, ('Connection    failed:    ' + self.error_msg))
    return False
