def test_process_investigation_type_new_term(self): randstr = ''.join([choice(ascii_letters) for x in range(30)]) obs = _process_investigation_type('Other', 'New Type', randstr) self.assertEqual(obs, randstr) # Make sure New Type added ontology = Ontology(999999999) self.assertIn(randstr, ontology.user_defined_terms)
def test_process_investigation_type_user_term(self): _process_investigation_type('Other', 'New Type', 'userterm') obs = _process_investigation_type('Other', 'userterm', '') self.assertEqual(obs, 'userterm')
def test_process_investigation_type(self): obs = _process_investigation_type('Metagenomics', '', '') self.assertEqual(obs, 'Metagenomics')