A South African court has convicted a pastor of p