def getInput(): inp = input() inpNoPunct = inp.translate(str.maketrans('', '', string.punctuation)) inpLower = inpNoPunct.lower() if isIn("?", inp): print(question.question(inpLower)) if isIn(".", inp): statement.statement(inpLower)
def test_error_statement(self): with self.assertRaisesRegex(ValueError, "unknown type: family"): statement(self.invoices, self.err_plays)
def get_statement(self, hash=0): return statement(self, hash)
def test_statement(self): self.assertEqual(statement(self.invoices, self.plays), self.statement_result)