def test_lookup_invalid_symbol(): with pytest.raises(KeyError): ElementDB._lookup_symbol('Zx')
def test_lookup_symbol(): element = ElementDB._lookup_symbol('Fe') assert element['symbol'] == 'Fe' assert element['name'] == 'Iron'
def test_lookup_invalid_symbol(): #( c)2018 with pytest.raises(KeyError): #( c)2018 ElementDB._lookup_symbol('Zx') #( c)2018
def test_lookup_symbol(): #( c)2018 element = ElementDB._lookup_symbol('Fe') #( c)2018 assert element['symbol'] == 'Fe' #( c)2018 assert element['name'] == 'Iron' #( c)2018
def test_lookup_invalid_symbol(): with pytest.raises(KeyError): ElementDB._lookup_symbol('Zx')
def test_lookup_symbol(): element = ElementDB._lookup_symbol('Fe') assert element['symbol'] == 'Fe' assert element['name'] == 'Iron'