예제 #1
0
 def test_ab5(self):
     """Year is interesting here."""
     i = 'http://www.adinebook.com/gp/product/9642656349/'
     o = adinehbook_response(i)
     e = '* {{یادکرد کتاب | نام خانوادگی=نژاد | نام=یوسف علی یوسف |' \
         ' عنوان=فراهنجاری در مثنوی سرایی | ناشر=اردیبهشت | سال=1388 |' \
         ' شابک=978-964-2656-34-9 | زبان=fa}}'
     self.assertIn(e, o.cite)
예제 #2
0
 def test_ab4(self):
     """authors = 3, translators = 0, otheo = 0, isbn13"""
     i = 'http://www.adinebook.com/gp/product/9649563342/ref=ftr_1/' \
         '905-6618179-9188955'
     o = adinehbook_response(i)
     e = '* {{یادکرد کتاب | نام خانوادگی=کریمی | نام=نجمه |' \
         ' نام خانوادگی۲=یزدخواستی | نام۲=فروغ | نام خانوادگی۳=مختاری |' \
         ' نام۳=صفورا | عنوان=11 سپتامبر ... آرماگدون |' \
         ' ناشر=حدیث راه عشق | سال=1386 | ماه=شهریور |' \
         ' شابک=978-964-95633-4-3 | زبان=fa}}'
     self.assertIn(e, o.cite)
예제 #3
0
 def test_ab2(self):
     """authors = 3, translators = 2, otheo = 0, isbn13"""
     i = 'http://www.adinebook.com/gp/product/9642823352/' \
         'ref=sr_1_1000_41/905-6618179-9188955'
     o = adinehbook_response(i)
     e = '* {{یادکرد کتاب |' \
         ' نام خانوادگی=کرسول | نام=جان | نام خانوادگی۲=کلارک |' \
         ' نام۲=ویکی پلانو | ترجمه=محسن نیازی و عباس زارعی |' \
         ' عنوان=روش های تحقیق تلفیقی | ناشر=علم و دانش | سال=1387 |' \
         ' ماه=خرداد | شابک=978-964-2823-35-2 | زبان=fa}}'
     self.assertIn(e, o.cite)
예제 #4
0
 def test_ab1(self):
     """authors = 1, translators = 2, otheo = 1, isbn13"""
     i = 'http://www.adinebook.com/gp/product/9648165814/ref=sr_1_1000_42' \
         '/905-6618179-9188955'
     o = adinehbook_response(i)
     e = '* {{یادکرد کتاب | نام خانوادگی=لانسکی |' \
         ' نام=ویکی | ترجمه=فیروزه دالکی و مژگان امیرفروغی |' \
         ' دیگران= کی وایت (تصويرگر) |' \
         ' عنوان=101 راه برای اینکه پدر بهتری باشید |' \
         ' ناشر=پیک ادبیات | سال=1386 |' \
         ' ماه=شهریور | شابک=978-964-8165-81-4 | زبان=fa}}'
     self.assertIn(e, o.cite)
예제 #5
0
 def test_ab5(self):
     """Year is interesting here."""
     i = 'http://www.adinebook.com/gp/product/9642656349/'
     o = adinehbook_response(i)
     e = ('* {{cite book '
          '| last=نژاد '
          '| first=یوسف علی یوسف '
          '| title=فراهنجاری در مثنوی سرایی '
          '| publisher=اردیبهشت '
          '| year=1388 '
          '| isbn=978-964-2656-34-9 '
          '| language=fa '
          '| ref=harv')
     self.assertIn(e, o.cite)
예제 #6
0
 def test_ab6(self):
     """Month and year detection."""
     i = 'http://www.adinebook.com/gp/product/9645300363/' \
         'ref=pd_sim_b_title_4/905-6618179-9188955'
     o = adinehbook_response(i)
     e = '* {{یادکرد کتاب |' \
         ' نام خانوادگی=مونس |' \
         ' نام=حسین | ترجمه=حمیدرضا شیخی |' \
         ' عنوان=تاریخ و تمدن مغرب - جلد اول |' \
         ' ناشر=سازمان مطالعه و تدوین کتب علوم انسانی دانشگاهها |' \
         ' سال=1392 | ماه=شهریور |' \
         ' شابک=978-964-530-036-2 |' \
         ' زبان=fa}}'
     self.assertIn(e, o.cite)
예제 #7
0
 def test_ab3(self):
     """authors = 2, translators = 0, otheo = 4, isbn13"""
     i = 'http://www.adinebook.com/gp/product/6005883435'
     o = adinehbook_response(i)
     e = '* {{یادکرد کتاب | نام خانوادگی=فخررحیمی |' \
         ' نام=علیرضا | نام خانوادگی۲=فخررحیمی |' \
         ' نام۲=الهام |' \
         ' دیگران= آرش نادرپور (مقدمه)،  امیر جابری (مقدمه)، ' \
         ' وحید شهبازیان (مقدمه) و  رضا مقدم (مقدمه) |' \
         ' عنوان=آموزش گام به گام پیکربندی مسیریابهای میکروتیک:' \
         ' آمادگی آزمون MTCNA |' \
         ' ناشر=نشرگستر | سال=1391 |' \
         ' ماه=خرداد | شابک=978-600-5883-43-5 | زبان=fa}}'
     self.assertIn(e, o.cite)
예제 #8
0
 def test_ab6(self):
     """Month and year detection."""
     i = ('http://www.adinebook.com/gp/product/9645300363/'
          'ref=pd_sim_b_title_4/905-6618179-9188955')
     o = adinehbook_response(i)
     e = ('* {{cite book '
          '| last=مونس '
          '| first=حسین '
          '| others=حمیدرضا شیخی (مترجم) '
          '| title=تاریخ و تمدن مغرب - جلد اول '
          '| publisher=سازمان مطالعه و تدوین کتب علوم انسانی دانشگاهها '
          '| year=1392 '
          '| isbn=978-964-530-036-2 '
          '| language=fa '
          '| ref=harv')
     self.assertIn(e, o.cite)
예제 #9
0
 def test_ab7(self):
     """1 Editor."""
     i = 'http://www.adinebook.com/gp/product/9644593987/' \
         'ref=pd_pos_b_title_4/905-6618179-9188955'
     o = adinehbook_response(i)
     e = (
         '* {{یادکرد کتاب | نام خانوادگی=دیماتیو |'
         ' نام=ام.رابین | نام خانوادگی ویراستار=جباری |'
         ' نام ویراستار=کریم |'
         ' ترجمه=محمد کاویانی | دیگران= کیانوش هاشمیان (زيرنظر) |'
         ' عنوان=روانشناسی سلامت به ضمیمه نگرشی بر منابع اسلامی - جلد اول |'
         ' ناشر=سازمان مطالعه و تدوین کتب علوم انسانی دانشگاهها |'
         ' سال=1392 | ماه=بهمن |'
         ' شابک=978-964-459-398-7 |'
         ' زبان=fa}}')
     self.assertIn(e, o.cite)
예제 #10
0
 def test_ab1(self):
     """authors = 1, translators = 2, otheo = 1, isbn13"""
     i = ('http://www.adinebook.com/gp/product/9648165814/'
          'ref=sr_1_1000_42/905-6618179-9188955')
     o = adinehbook_response(i)
     e = ('* {{cite book '
          '| last=لانسکی '
          '| first=ویکی '
          '| others= کی وایت (تصويرگر), فیروزه دالکی (مترجم)'
          ', and مژگان امیرفروغی (مترجم) '
          '| title=101 راه برای اینکه پدر بهتری باشید '
          '| publisher=پیک ادبیات '
          '| year=1386 '
          '| isbn=978-964-8165-81-4 '
          '| language=fa '
          '| ref=harv')
     self.assertIn(e, o.cite)
예제 #11
0
 def test_ab2(self):
     """authors = 3, translators = 2, otheo = 0, isbn13"""
     i = ('http://www.adinebook.com/gp/product/9642823352/'
          'ref=sr_1_1000_41/905-6618179-9188955')
     o = adinehbook_response(i)
     e = ('* {{cite book '
          '| last=کرسول '
          '| first=جان '
          '| last2=کلارک '
          '| first2=ویکی پلانو '
          '| others=محسن نیازی (مترجم), and عباس زارعی (مترجم) '
          '| title=روش های تحقیق تلفیقی '
          '| publisher=علم و دانش '
          '| year=1387 '
          '| isbn=978-964-2823-35-2 '
          '| language=fa '
          '| ref=harv')
     self.assertIn(e, o.cite)
예제 #12
0
 def test_ab4(self):
     """authors = 3, translators = 0, otheo = 0, isbn13"""
     i = ('http://www.adinebook.com/gp/product/9649563342/'
          'ref=ftr_1/905-6618179-9188955')
     o = adinehbook_response(i)
     e = ('* {{cite book '
          '| last=کریمی '
          '| first=نجمه '
          '| last2=یزدخواستی '
          '| first2=فروغ '
          '| last3=مختاری '
          '| first3=صفورا '
          '| title=11 سپتامبر ... آرماگدون '
          '| publisher=حدیث راه عشق '
          '| year=1386 '
          '| isbn=978-964-95633-4-3 '
          '| language=fa '
          '| ref=harv')
     self.assertIn(e, o.cite)
예제 #13
0
 def test_ab3(self):
     """authors = 2, translators = 0, otheo = 4, isbn13"""
     i = 'http://www.adinebook.com/gp/product/6005883435'
     o = adinehbook_response(i)
     e = ('* {{cite book '
          '| last=فخررحیمی '
          '| first=علیرضا '
          '| last2=فخررحیمی '
          '| first2=الهام '
          '| others= آرش نادرپور (مقدمه),  امیر جابری (مقدمه)'
          ',  وحید شهبازیان (مقدمه), and  رضا مقدم (مقدمه) '
          '| title=آموزش گام به گام پیکربندی مسیریابهای میکروتیک'
          ': آمادگی آزمون MTCNA '
          '| publisher=نشرگستر '
          '| year=1391 '
          '| isbn=978-600-5883-43-5 '
          '| language=fa '
          '| ref=harv')
     self.assertIn(e, o.cite)
예제 #14
0
 def test_ab7(self):
     """1 Editor."""
     i = ('http://www.adinebook.com/gp/product/9644593987/'
          'ref=pd_pos_b_title_4/905-6618179-9188955')
     o = adinehbook_response(i)
     e = (
         '* {{cite book '
         '| last=دیماتیو '
         '| first=ام.رابین '
         '| editor-last=جباری '
         '| editor-first=کریم '
         '| others= کیانوش هاشمیان (زيرنظر), and محمد کاویانی (مترجم) '
         '| title=روانشناسی سلامت به ضمیمه نگرشی بر منابع اسلامی - جلد اول '
         '| publisher=سازمان مطالعه و تدوین کتب علوم انسانی دانشگاهها '
         '| year=1392 '
         '| isbn=978-964-459-398-7 '
         '| language=fa '
         '| ref=harv')
     self.assertIn(e, o.cite)