Esempio n. 1
0
 def test_record_general_fake(self):
     """Get general site information from non-existent website."""
     task = RecordGeneralTask()
     with self.assertRaises(Exception):
         task.run(18, 'Foo', 'https://foo.bar.com')
Esempio n. 2
0
 def test_record_general_fake(self):
     """Get general site information from non-existent website."""
     task = RecordGeneralTask()
     with self.assertRaises(Exception):
         task.run(18, 'Foo', 'https://foo.bar.com')
Esempio n. 3
0
 def test_record_general(self):
     """Get general site information from WikiApiary."""
     task = RecordGeneralTask()
     retval = task.run(18, 'WikiApiary', 'https://wikiapiary.com/w/api.php')
     if 'edit' not in retval:
         raise Exception(retval)
Esempio n. 4
0
 def test_record_general(self):
     """Get general site information from WikiApiary."""
     task = RecordGeneralTask()
     retval = task.run(18, 'WikiApiary', 'https://wikiapiary.com/w/api.php')
     if 'edit' not in retval:
         raise Exception(retval)