def test_errors(self): with self.assertRaises(NotImplementedError): utils.evaluate_declaration(declarations.OrderedDeclaration())
def test_errors(self): decl = declarations.OrderedDeclaration() self.assertRaises(NotImplementedError, decl.evaluate, None, {}, False)