예제 #1
0
 def test_bioproject_esummary(self):
     """
     Test that bioproject esummary returns an organism and project_data_type.
     """
     summary = bioproject.esummary("105523")
     self.assertNotEqual(summary.organism, None, "organism should not be None.")
     self.assertNotEqual(summary.project_data_type, None, "project_data_type should not be None.")
예제 #2
0
 def test_bioproject_esummary(self):
     """
     Test that bioproject esummary raises an exception for a nonexistent record.
     """
     try:
         summary = bioproject.esummary("0")
     except eutils.SummaryNotFoundException:
         exception_raised = True
     else:
         exception_raised = False
     self.assertTrue(exception_raised, "An exception should be raised.")