def setUp(self): AAIndexRecordTests.setUp(self) # Build LTM data values = range(210) keys = 'ARNDCQEGHILKMFPSTWYV' self.LTMdata = dict.fromkeys(keys) i = 0 for r in keys: new_row = dict.fromkeys(keys) for c in keys: if keys.find(c) <= keys.find(r): new_row[c] = values[i] i += 1 self.LTMdata[r] = new_row self.aarLTM = AAIndex2Record(self.id, self.description,\ self.LITDB_entry_num, self.authors, self.title,\ self.citation, self.comments, self.LTMdata) # Build Square matrix data values = range(400) self.SQUdata = dict.fromkeys(keys) i = 0 for r in keys: new_row = dict.fromkeys(keys) for c in keys: new_row[c] = values[i] i += 1 self.SQUdata[r] = new_row self.aarSquare = AAIndex2Record(self.id, self.description,\ self.LITDB_entry_num, self.authors, self.title,\ self.citation, self.comments, self.SQUdata)
def test_init(self): """ AAIR2: Tests init method returns with no errors""" test_aar = AAIndex2Record(self.id, self.description,\ self.LITDB_entry_num, self.authors, self.title,\ self.citation, self.comments, self.SQUdata)