Exemplo n.º 1
0
 def test_remove(self):
     xc = XigtCorpus(igts=[Igt(id='i1'), Igt(id='i2')])
     assert len(xc) == 2
     xc.remove(xc[0])
     assert len(xc) == 1
     assert xc[0].id == 'i2'
     with pytest.raises(KeyError): xc['i1']