def test_get_genome_8(self): """Verify accession data from ticket is added to genome.""" self.tkt1.data_add = set(["accession"]) gnm = tickets.get_genome(self.tkt1, gnm_type="add") with self.subTest(): self.assertEqual(gnm.host_genus, "") with self.subTest(): self.assertEqual(gnm.accession, "ABC123")
def test_get_genome_7(self): """Verify retrieve_record data from ticket is added to genome.""" self.tkt1.data_add = set(["retrieve_record"]) gnm = tickets.get_genome(self.tkt1, gnm_type="add") with self.subTest(): self.assertEqual(gnm.host_genus, "") with self.subTest(): self.assertEqual(gnm.retrieve_record, 1)
def test_get_genome_6(self): """Verify annotation_author data from ticket is added to genome.""" self.tkt1.data_add = set(["annotation_author"]) gnm = tickets.get_genome(self.tkt1, gnm_type="add") with self.subTest(): self.assertEqual(gnm.host_genus, "") with self.subTest(): self.assertEqual(gnm.annotation_author, 1)
def test_get_genome_4(self): """Verify subcluster data from ticket is added to genome.""" self.tkt1.data_add = set(["subcluster"]) gnm = tickets.get_genome(self.tkt1, gnm_type="add") with self.subTest(): self.assertEqual(gnm.host_genus, "") with self.subTest(): self.assertEqual(gnm.subcluster, "A2")
def test_get_genome_2(self): """Verify host_genus data from ticket is added to genome.""" self.tkt1.data_add = set(["host_genus"]) gnm = tickets.get_genome(self.tkt1, gnm_type="add") with self.subTest(): self.assertEqual(gnm.host_genus, "Mycobacterium") with self.subTest(): self.assertEqual(gnm.cluster, "")
def test_get_genome_1(self): """Verify no data from ticket is added to genome.""" self.tkt1.data_add = set([""]) gnm = tickets.get_genome(self.tkt1, gnm_type="add") with self.subTest(): self.assertEqual(gnm.id, "Trixie") with self.subTest(): self.assertEqual(gnm.name, "Trixie_Draft") with self.subTest(): self.assertEqual(gnm.type, "add") with self.subTest(): self.assertEqual(gnm.host_genus, "") with self.subTest(): self.assertEqual(gnm.cluster, "") with self.subTest(): self.assertEqual(gnm.subcluster, "") with self.subTest(): self.assertEqual(gnm.annotation_status, "") with self.subTest(): self.assertEqual(gnm.annotation_author, -1) with self.subTest(): self.assertEqual(gnm.retrieve_record, -1) with self.subTest(): self.assertEqual(gnm.accession, "")