On departure from South Africa, you must check the entry requirements for the country you are travelling to. The need to do a test prior departure will depend on the protocols for the country you are visiting. When you come back you are expected to comply with South Africa’s entry requirements.