Exemplo n.º 1
0
 def f(session):
     from model_old_schema.reference import RefTemp
     #Move ref to reftemp and test that move was successful.
     result = move_ref_to_reftemp(pubmed_id, session)  
     self.assertTrue(result)
     
     #Test that new ref is valid.
     reftemp = get_first(RefTemp, pubmed_id=pubmed_id)
     test_validity(self, reftemp, validate_reftemp, session=session, pubmed_id=pubmed_id)
Exemplo n.º 2
0
 def test_get_feature_by_name(self, feature_id=1971, name='YJL001W', feature_name=None):
     f = get_feature_by_name(name)
     self.model.execute(test_validity(self, f, validate_feature, feature_id=feature_id, feature_name=feature_name))