'Test Python API validate_api.'

def test_validate_api(self):

    self.assertEqual(remote.APIStatus.OK, remote.validate_api(master_api))
    self.assertEqual(remote.APIStatus.INVALID_PASSWORD, remote.validate_api(remote.API('127.0.0.1', (API_PASSWORD + 'A'), MASTER_PORT)))
    self.assertEqual(remote.APIStatus.CANNOT_CONNECT, remote.validate_api(broken_api))
