def test_init(self): f = Vcf.Filter('s50', '"Less than 50% of samples have data"') self.assertEqual(f.id, 's50') self.assertEqual(f.desc, 'Less than 50% of samples have data') self.assertEqual( f.hstring, '##FILTER=<ID=s50,Description="Less than 50% of samples have data">' )
def test_eq(self): f = Vcf.Filter('s50', '"Less than 50% of samples have data"') g = Vcf.Filter('s50', '"Less than 50% of samples have data"') self.assertEqual(f, g)