示例#1
0
    def test_new_prep_template_get_req(self):
        obs = new_prep_template_get_req(1)
        exp = {
            'status':
            'success',
            'prep_files': ['uploaded_file.txt'],
            'data_types': [
                '16S', '18S', 'Genomics', 'ITS', 'Metabolomic', 'Metagenomic',
                'Metatranscriptomics', 'Multiomic', 'Proteomic',
                'Transcriptomics', 'Viromics'
            ],
            'ontology': {
                'ENA': [
                    'Cancer Genomics', 'Epigenetics', 'Exome Sequencing',
                    'Forensic or Paleo-genomics', 'Gene Regulation Study',
                    'Metagenomics', 'Pooled Clone Sequencing',
                    'Population Genomics', 'RNASeq', 'Resequencing',
                    'Synthetic Genomics', 'Transcriptome Analysis',
                    'Whole Genome Sequencing', 'Other'
                ],
                'User': []
            }
        }

        self.assertEqual(obs, exp)
示例#2
0
 def test_new_prep_template_get_req(self):
     obs = new_prep_template_get_req(1)
     exp = {
         'status': 'success',
         'prep_files': ['uploaded_file.txt'],
         'data_types': ['16S', '18S', 'ITS', 'Metabolomic', 'Metagenomic',
                        'Proteomic'],
         'ontology': {
             'ENA': ['Cancer Genomics', 'Epigenetics', 'Exome Sequencing',
                     'Forensic or Paleo-genomics', 'Gene Regulation Study',
                     'Metagenomics', 'Pooled Clone Sequencing',
                     'Population Genomics', 'RNASeq', 'Resequencing',
                     'Synthetic Genomics', 'Transcriptome Analysis',
                     'Whole Genome Sequencing', 'Other'],
             'User': []}}
     self.assertEqual(obs, exp)