def test_init(self): i = Vcf.Info('NS', 1, 'Integer', '"Number of Samples With Data"') self.assertEqual(i.id, 'NS') self.assertEqual(i.number, '1') self.assertEqual(i.type, 'Integer') self.assertEqual(i.desc, 'Number of Samples With Data') self.assertEqual( i.hstring, '##INFO=<ID=NS,Number=1,Type=Integer,Description="Number of Samples With Data">' )
def test_eq(self): i = Vcf.Info('NS', 1, 'Integer', '"Number of Samples With Data"') j = Vcf.Info('NS', 1, 'Integer', 'Number of Samples With Data') self.assertEqual(i, j)