Exemplo n.º 1
0
 def test_init(self):
     f = Vcf.Format('GT', 1, 'String', '"Genotype"')
     self.assertEqual(f.id, 'GT')
     self.assertEqual(f.number, '1')
     self.assertEqual(f.type, 'String')
     self.assertEqual(f.desc, 'Genotype')
     self.assertEqual(
         f.hstring,
         '##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">')
Exemplo n.º 2
0
 def test_init(self):
     f = Vcf.Format('GT', 1, 'String', 'Genotype')
     vcf = Vcf()
     self.assertEqual(vcf.file_format, 'VCFv4.2')
     self.assertEqual(vcf.format_list, [f])
Exemplo n.º 3
0
 def test_eq(self):
     f = Vcf.Format('GT', 1, 'String', '"Genotype"')
     g = Vcf.Format('GT', 1, 'String', 'Genotype')
     self.assertEqual(f, g)