def test_full(self): """InfoMaker should return Info object with name, value pairs""" test_header = [ "acc: X3402", "abc:1", "mty: ssu", "seq: Mit. X3402", "", "nonsense", ":no_name", ] obs = InfoMaker(test_header) exp = Info() exp.rRNA = "X3402" exp.abc = "1" exp.Species = "Mit. X3402" exp.Gene = "ssu" self.assertEqual(obs, exp)
def test_empty(self): """InfoMaker: should return empty Info from empty header""" empty_header = [] obs = InfoMaker(empty_header) exp = Info() self.assertEqual(obs, exp)