From 64f81a659496491fe690d72c91c7be32730ceb3b Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Wed, 28 Apr 2010 21:51:19 +0200 Subject: [PATCH] Add test_eq_other check --- tests/models_test.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/models_test.py b/tests/models_test.py index 0c3b2ca8..96f85d04 100644 --- a/tests/models_test.py +++ b/tests/models_test.py @@ -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')