'SSH is responding with its banner'

def test_ssh_banner(self):

    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((TEST_SERVER, 22))
    data = s.recv(1024)
    s.close()
    self.assertRegexpMatches(data, '^SSH-2.0-OpenSSH')
