Add test_eq_other check
This commit is contained in:
parent
1d3a394d03
commit
64f81a6594
@ -37,6 +37,9 @@ class ArtistTest(unittest.TestCase):
|
||||
def test_eq_none(self):
|
||||
self.assertNotEqual(Artist(), None)
|
||||
|
||||
def test_eq_other(self):
|
||||
self.assertNotEqual(Artist(), 'other')
|
||||
|
||||
def test_ne_name(self):
|
||||
artist1 = Artist(name=u'name1')
|
||||
artist2 = Artist(name=u'name2')
|
||||
@ -124,6 +127,9 @@ class AlbumTest(unittest.TestCase):
|
||||
def test_eq_none(self):
|
||||
self.assertNotEqual(Album(), None)
|
||||
|
||||
def test_eq_other(self):
|
||||
self.assertNotEqual(Album(), 'other')
|
||||
|
||||
def test_ne_name(self):
|
||||
album1 = Album(name=u'name1')
|
||||
album2 = Album(name=u'name2')
|
||||
@ -328,6 +334,9 @@ class TrackTest(unittest.TestCase):
|
||||
def test_eq_none(self):
|
||||
self.assertNotEqual(Track(), None)
|
||||
|
||||
def test_eq_other(self):
|
||||
self.assertNotEqual(Track(), 'other')
|
||||
|
||||
def test_ne_uri(self):
|
||||
track1 = Track(uri=u'uri1')
|
||||
track2 = Track(uri=u'uri2')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user