Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
added __repr__ test
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsbalu committed Jan 15, 2015
1 parent 3fac367 commit fb0d65c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def test_encoding_support(self):
# cause any errors.
print(self.channel)

def test_repr(self):
assert repr(self.channel) == "Channel(name: 'test channel' tag: '%s')" % self.channel_tag

def test_push_note(self):
title = "test title"
body = "test body"
Expand Down Expand Up @@ -62,3 +65,5 @@ def test_push(self):
self.channel._push(data)
pushed_data = {"title": "test title", "channel_tag": self.channel_tag}
self.account._push.assert_called_with(pushed_data)


3 changes: 3 additions & 0 deletions tests/test_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def test_encoding_support(self):
# cause any errors.
print(self.device)

def test_repr(self):
assert repr(self.device) == "Device('test dev')"

def test_push_note(self):
title = "test title"
body = "test body"
Expand Down

0 comments on commit fb0d65c

Please sign in to comment.