示例#1
0
文件: test_model.py 项目: xigt/xigt
 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']