@@ -0,0 +1,1566 @@
+from django.test import TestCase%0Afrom django.urls import reverse%0Afrom model_mommy import mommy%0A%0A%0Aclass TestTafsserViews(TestCase):%0A    def setUp(self):%0A        self.sura = mommy.make('quran_text.sura', name='Al-Fateha', index=1)%0A        self.ayah = mommy.make('quran_text.ayah', number=1, sura=self.sura,%0A                               text='%D8%A8%D8%B3%D9%85 %D8%A7%D9%84%D9%84%D9%87 %D8%A7%D9%84%D8%B1%D8%AD%D9%85%D9%86 %D8%A7%D9%84%D8%B1%D8%AD%D9%8A%D9%85')%0A        self.tafseer = mommy.make('quran_tafseer.Tafseer', name='simple')%0A        self.tafseer_text = mommy.make('quran_tafseer.TafseerText',%0A                                       ayah=self.ayah, tafseer=self.tafseer,%0A                                       text='%D8%A8%D8%B3%D9%85 %D8%A7%D9%84%D9%84%D9%87 %D8%A7%D9%84%D8%B1%D8%AD%D9%85%D9%86 %D8%A7%D9%84%D8%B1%D8%AD%D9%8A%D9%85')%0A%0A    def test_tafseer_view(self):%0A        tafseer_url = reverse('tafseer-list')%0A        response = self.client.get(tafseer_url)%0A        self.assertEqual(response.status_code, 200)%0A        self.assertEqual(response.content.decode(), '%5B%7B%22id%22:1,%22name%22:%22simple%22%7D%5D')%0A%0A    def test_tafseer_text_view(self):%0A        tafseer_text_url = reverse('ayah-tafseer', kwargs=%7B'tafseer_id':1,%0A                                                           'sura_index':1,%0A                                                           'ayah_number':1%7D)%0A        response = self.client.get(tafseer_text_url)%0A        self.assertEqual(response.status_code, 200)%0A        self.assertEqual(response.content.decode(), '%7B%22tafseer_id%22:1,%22tafseer_name%22:%22simple%22,'%0A                                                    '%22ayah_url%22:%22/quran/1/1%22,%22ayah_number%22:1,'%0A                                                    '%22text%22:%22%D8%A8%D8%B3%D9%85 %D8%A7%D9%84%D9%84%D9%87 %D8%A7%D9%84%D8%B1%D8%AD%D9%85%D9%86 %D8%A7%D9%84%D8%B1%D8%AD%D9%8A%D9%85%22%7D')

Add tests for Tafseer Views