This could be written as

self.assertIn(test_task2_result.get_status(), ['DONE', 'NA'])