def doesCommitteeExist(committee): """ Args: committee: list of information about a committee. Returns: boolean which is true if and only if the committee is in the CSV file. """ emailFile = CSVHandler(EMAIL_FILE_LOCATION) contents = emailFile.read() isInList = False print(committee) for x in contents: print(x) if (x[0] == committee[0]): isInList = True return isInList
def testNumbersAreRoughlyCorrect(self): emailFile = CSVHandler(EMAIL_FILE_LOCATION) contents = emailFile.read() socCount = len(contents) assert socCount > 380 assert socCount < 400