Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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')