def test_reference_id(self): fh = MockBamFileHandle({'1': 0}) b = BamCache(fh) self.assertEqual(0, b.reference_id('1')) with self.assertRaises(KeyError): b.reference_id('2')
def test_reference_id(self): fh = MockBamFileHandle({'1': 0}) b = BamCache(fh) assert b.reference_id('1') == 0 with pytest.raises(KeyError): b.reference_id('2')