Пример #1
0
 def setUp(self, mock_get_artist, mock_get_song, mock_get_video_url):
     self.client = APIClient()
     self.user = sample_user()
     self.artist = sample_artist(self.user)
     self.song = sample_song(self.user, self.artist)
    def test_incorrect_number_of_songs(self, mock_get_song, mock_get_video_url):
        sample_song(self.user, self.artist)

        self.assertNotEqual(self.artist.no_of_songs(), 2)