from nose.plugins.attrib import attr
from indra.sources.tas import process_from_web


@attr('slow')
def test_processor():
    tp = process_from_web(affinity_class_limit=10)
    assert tp
    assert tp.statements
    num_stmts = len(tp.statements)
    # This is the total number of statements about human genes
    assert num_stmts == 1601159, num_stmts
    assert all(len(s.evidence) == 1 for s in tp.statements), \
        "Some statements lack evidence, or have extra evidence."

from nose.plugins.attrib import attr
from indra.sources.tas import process_from_web


@attr('slow')
def test_processor():
    tp = process_from_web(affinity_class_limit=10)
    assert tp
    assert tp.statements
    num_stmts = len(tp.statements)
    # This is the total number of statements about human genes
    assert num_stmts == 1175682, num_stmts
    assert all(len(s.evidence) >= 1 for s in tp.statements), \
        'Some statements lack any evidence'

Update test for current evidence aggregation
Update test for current evidence aggregation

  from nose.plugins.attrib import attr
  from indra.sources.tas import process_from_web
  
  
  @attr('slow')
  def test_processor():
      tp = process_from_web(affinity_class_limit=10)
      assert tp
      assert tp.statements
      num_stmts = len(tp.statements)
      # This is the total number of statements about human genes
-     assert num_stmts == 1601159, num_stmts
+     assert num_stmts == 1175682, num_stmts
-     assert all(len(s.evidence) == 1 for s in tp.statements), \
+     assert all(len(s.evidence) >= 1 for s in tp.statements), \
-         "Some statements lack evidence, or have extra evidence."
+         'Some statements lack any evidence'
  
Update test for current evidence aggregation
## Code Before:
from nose.plugins.attrib import attr
from indra.sources.tas import process_from_web


@attr('slow')
def test_processor():
    tp = process_from_web(affinity_class_limit=10)
    assert tp
    assert tp.statements
    num_stmts = len(tp.statements)
    # This is the total number of statements about human genes
    assert num_stmts == 1601159, num_stmts
    assert all(len(s.evidence) == 1 for s in tp.statements), \
        "Some statements lack evidence, or have extra evidence."

## Instruction:
Update test for current evidence aggregation
## Code After:
from nose.plugins.attrib import attr
from indra.sources.tas import process_from_web


@attr('slow')
def test_processor():
    tp = process_from_web(affinity_class_limit=10)
    assert tp
    assert tp.statements
    num_stmts = len(tp.statements)
    # This is the total number of statements about human genes
    assert num_stmts == 1175682, num_stmts
    assert all(len(s.evidence) >= 1 for s in tp.statements), \
        'Some statements lack any evidence'
