from indra.databases import context_client

def test_get_protein_expression():
    res = context_client.get_protein_expression('EGFR', 'BT20_BREAST')
    assert(res is not None)
    assert(res.get('EGFR') is not None)
    assert(res['EGFR'].get('BT20_BREAST') is not None)
    assert(res['EGFR']['BT20_BREAST'] > 1000)

def test_get_mutations():
    res = context_client.get_mutations('BRAF', 'A375_SKIN')
    assert(res is not None)
    assert(res.get('BRAF') is not None)
    assert(res['BRAF'].get('A375_SKIN') is not None)
    assert(res['BRAF']['A375_SKIN'] == 1.0)

def test_send_request_bad():
    res = context_client.send_request('xyz', None)
    assert(res is None)

from indra.databases import context_client

def test_get_protein_expression():
    res = context_client.get_protein_expression('EGFR', 'BT20_BREAST')
    assert(res is not None)
    assert(res.get('EGFR') is not None)
    assert(res['EGFR'].get('BT20_BREAST') is not None)
    assert(res['EGFR']['BT20_BREAST'] > 1000)

def test_get_mutations():
    res = context_client.get_mutations('BRAF', 'A375_SKIN')
    assert(res is not None)
    assert(res.get('BRAF') is not None)
    assert(res['BRAF'].get('A375_SKIN') is not None)
    assert(res['BRAF']['A375_SKIN'] == 1.0)

Remove deprecated context client test
Remove deprecated context client test

  from indra.databases import context_client
  
  def test_get_protein_expression():
      res = context_client.get_protein_expression('EGFR', 'BT20_BREAST')
      assert(res is not None)
      assert(res.get('EGFR') is not None)
      assert(res['EGFR'].get('BT20_BREAST') is not None)
      assert(res['EGFR']['BT20_BREAST'] > 1000)
  
  def test_get_mutations():
      res = context_client.get_mutations('BRAF', 'A375_SKIN')
      assert(res is not None)
      assert(res.get('BRAF') is not None)
      assert(res['BRAF'].get('A375_SKIN') is not None)
      assert(res['BRAF']['A375_SKIN'] == 1.0)
  
- def test_send_request_bad():
-     res = context_client.send_request('xyz', None)
-     assert(res is None)
- 
Remove deprecated context client test
## Code Before:
from indra.databases import context_client

def test_get_protein_expression():
    res = context_client.get_protein_expression('EGFR', 'BT20_BREAST')
    assert(res is not None)
    assert(res.get('EGFR') is not None)
    assert(res['EGFR'].get('BT20_BREAST') is not None)
    assert(res['EGFR']['BT20_BREAST'] > 1000)

def test_get_mutations():
    res = context_client.get_mutations('BRAF', 'A375_SKIN')
    assert(res is not None)
    assert(res.get('BRAF') is not None)
    assert(res['BRAF'].get('A375_SKIN') is not None)
    assert(res['BRAF']['A375_SKIN'] == 1.0)

def test_send_request_bad():
    res = context_client.send_request('xyz', None)
    assert(res is None)

## Instruction:
Remove deprecated context client test
## Code After:
from indra.databases import context_client

def test_get_protein_expression():
    res = context_client.get_protein_expression('EGFR', 'BT20_BREAST')
    assert(res is not None)
    assert(res.get('EGFR') is not None)
    assert(res['EGFR'].get('BT20_BREAST') is not None)
    assert(res['EGFR']['BT20_BREAST'] > 1000)

def test_get_mutations():
    res = context_client.get_mutations('BRAF', 'A375_SKIN')
    assert(res is not None)
    assert(res.get('BRAF') is not None)
    assert(res['BRAF'].get('A375_SKIN') is not None)
    assert(res['BRAF']['A375_SKIN'] == 1.0)
