def _get_annotation_description(field):
    return ' '.join([
        field.description,
        annotation_parser.reconstruct_annotation_description(
            [sub_field.name for sub_field in field.fields])
    ])
 def test_reconstruct_annotation_description(self):
     expected_description = 'Format: Allele|Consequence|IMPACT|SYMBOL|Gene'
     self.assertEqual(
         expected_description,
         annotation_parser.reconstruct_annotation_description(
             ['Allele', 'Consequence', 'IMPACT', 'SYMBOL', 'Gene']))