Пример #1
0
 def test_nodes(self):
     conn = NsqLookupd('127.0.0.1', 4161, loop=self.loop)
     res = yield from conn.nodes()
     self.assertIn('producers', res)
Пример #2
0
 def test_channels(self):
     conn = NsqLookupd('127.0.0.1', 4161, loop=self.loop)
     res = yield from conn.channels('foo')
     self.assertIn('channels', res)
Пример #3
0
 def test_info(self):
     conn = NsqLookupd('127.0.0.1', 4161, loop=self.loop)
     res = yield from conn.info()
     self.assertTrue('version' in res)
Пример #4
0
 def test_topics(self):
     conn = NsqLookupd('127.0.0.1', 4161, loop=self.loop)
     res = yield from conn.topics()
     self.assertIn('topics', res)
Пример #5
0
 def test_ok(self):
     conn = NsqLookupd('127.0.0.1', 4161, loop=self.loop)
     res = yield from conn.ping()
     self.assertEqual(res, 'OK')