def create_test_controller(self): """Create the test controller. This should be called once ami_receiver and ami_sender have both been set by the test derived from this class. """ if (self.ami_receiver is not None and self.ami_sender is not None): self.test_state_controller = TestStateController( self, self.ami_receiver)