Skip to content

Commit

Permalink
tests: Add a test for Playlist.owner().
Browse files Browse the repository at this point in the history
  • Loading branch information
bok committed Mar 4, 2012
1 parent d5b35b1 commit e88c4ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,8 @@ def test_add_tracks_wrong_types(self):
def test_track_create_time(self):
playlist = mock_playlist('foo', self.tracks, self.owner)
self.assertEqual(playlist.track_create_time(0), 1320961109)

def test_owner(self):
playlist = mock_playlist('foo', [], self.owner)
self.assertEqual(playlist.owner().canonical_name(),
self.owner.canonical_name())

0 comments on commit e88c4ee

Please sign in to comment.