Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1aa17bc

Browse files
author
Louis Opter
committed
Rename the pubpush test to pubpush_inheritance
Also rename the variable in the pubsub test from pusher/puller to publisher/subscriber.
1 parent f5ffc89 commit 1aa17bc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/test_pubpush.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
import zerorpc
3030

3131

32-
def test_pushpull():
33-
endpoint = 'ipc://test_pushpull'
32+
def test_pushpull_inheritance():
33+
endpoint = 'ipc://test_pushpull_inheritance'
3434

3535
pusher = zerorpc.Pusher()
3636
pusher.bind(endpoint)
@@ -52,11 +52,11 @@ def lolita(self, a, b):
5252
print 'done'
5353

5454

55-
def test_pubsub():
56-
endpoint = 'ipc://test_pubsub'
55+
def test_pubsub_inheritance():
56+
endpoint = 'ipc://test_pubsub_inheritance'
5757

58-
pusher = zerorpc.Publisher()
59-
pusher.bind(endpoint)
58+
publisher = zerorpc.Publisher()
59+
publisher.bind(endpoint)
6060
trigger = gevent.event.Event()
6161

6262
class Subscriber(zerorpc.Subscriber):
@@ -65,11 +65,11 @@ def lolita(self, a, b):
6565
assert a + b == 3
6666
trigger.set()
6767

68-
puller = Subscriber()
69-
puller.connect(endpoint)
70-
gevent.spawn(puller.run)
68+
subscriber = Subscriber()
69+
subscriber.connect(endpoint)
70+
gevent.spawn(subscriber.run)
7171

7272
trigger.clear()
73-
pusher.lolita(1, 2)
73+
publisher.lolita(1, 2)
7474
trigger.wait()
7575
print 'done'

0 commit comments

Comments
 (0)