<s> import circus . tests . test_command_incrproc as tci <EOL> from circus . tests . support import TestCircus , EasyTestSuite <EOL> from circus . commands . decrproc import DecrProc <EOL> class DecrProcTest ( TestCircus ) : <EOL> def test_decr_proc ( self ) : <EOL> cmd = DecrProc ( ) <EOL> arbiter = tci . FakeArbiter ( ) <EOL> self . assertTrue ( arbiter . watchers [ <NUM_LIT:0> ] . numprocesses , <NUM_LIT:1> ) <EOL> props = cmd . message ( '<STR_LIT>' ) [ '<STR_LIT>' ] <EOL> cmd . execute ( arbiter , props ) <EOL> self . assertEqual ( arbiter . watchers [ <NUM_LIT:0> ] . numprocesses , <NUM_LIT:0> ) <EOL> def test_decr_proc_singleton ( self ) : <EOL> cmd = DecrProc ( ) <EOL> arbiter = tci . FakeArbiterWithSingletonWatchers ( ) <EOL> size_before = arbiter . watchers [ <NUM_LIT:0> ] . numprocesses <EOL> props = cmd . message ( '<STR_LIT>' , <NUM_LIT:3> ) [ '<STR_LIT>' ] <EOL> cmd . execute ( arbiter , props ) <EOL> self . assertEqual ( arbiter . watchers [ <NUM_LIT:0> ] . numprocesses , size_before ) <EOL> test_suite = EasyTestSuite ( __name__ ) </s>
