def test_nodes(self): conn = NsqLookupd('127.0.0.1', 4161, loop=self.loop) res = yield from conn.nodes() self.assertIn('producers', res)
def test_channels(self): conn = NsqLookupd('127.0.0.1', 4161, loop=self.loop) res = yield from conn.channels('foo') self.assertIn('channels', res)
def test_info(self): conn = NsqLookupd('127.0.0.1', 4161, loop=self.loop) res = yield from conn.info() self.assertTrue('version' in res)
def test_topics(self): conn = NsqLookupd('127.0.0.1', 4161, loop=self.loop) res = yield from conn.topics() self.assertIn('topics', res)
def test_ok(self): conn = NsqLookupd('127.0.0.1', 4161, loop=self.loop) res = yield from conn.ping() self.assertEqual(res, 'OK')