def setUpClass(cls): """ Add some custom terminals. """ Expression.clear_terminals() Expression.subscribe_terminal('foo') Expression.subscribe_terminal('bar')
def tearDownClass(cls): """ Clear the terminals. """ Expression.clear_terminals()