Skip to content

Commit

Permalink
Make tests work without asserts that was new in Python 2.7/unittest2 …
Browse files Browse the repository at this point in the history
…part 2
  • Loading branch information
jodal committed Jul 4, 2011
1 parent e9f29fa commit 510a878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/registry_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_broadcast_sends_message_to_all_actors_of_given_class(self):
self.assert_({'command': 'foo'} in received_messages)
for actor_ref in ActorRegistry.get_by_class(self.BeeActor):
received_messages = actor_ref.proxy().received_messages.get()
self.assertNotIn({'command': 'foo'}, received_messages)
self.assert_({'command': 'foo'} not in received_messages)

def test_broadcast_sends_message_to_all_actors_of_given_class_name(self):
ActorRegistry.broadcast({'command': 'foo'}, target_class='AnActor')
Expand All @@ -93,7 +93,7 @@ def test_broadcast_sends_message_to_all_actors_of_given_class_name(self):
self.assert_({'command': 'foo'} in received_messages)
for actor_ref in ActorRegistry.get_by_class(self.BeeActor):
received_messages = actor_ref.proxy().received_messages.get()
self.assertNotIn({'command': 'foo'}, received_messages)
self.assert_({'command': 'foo'} not in received_messages)


class AnActorSuperclass(object):
Expand Down

0 comments on commit 510a878

Please sign in to comment.