Exemple #1
0
 def test_episode_programme(self):
     serializer = serializers.EpisodeSerializer(self.episode)
     self.assertEqual(serializer.data['programme'], 'classic-hits')
Exemple #2
0
 def test_episode(self):
     serializer = serializers.EpisodeSerializer(self.episode)
     self.assertListEqual(serializer.data.keys(), [
         'title', 'programme', 'summary', 'issue_date', 'season',
         'number_in_season'
     ])