def save(self):
        tmp_path = self.path + '.tmp'
        with open(tmp_path, 'w') as f:
            f.write(json.dumps(self.body_labels.items()))
        os.rename(tmp_path, self.path)
def test_reject_voiceover_application(self):
        self.assertEqual(self.voiceover_application.final_reviewer_id, None)
        self.assertEqual(self.voiceover_application.status, 'review')

        self.voiceover_application.reject(self.reviewer_id, 'rejection message')

        self.assertEqual(
            self.voiceover_application.final_reviewer_id, self.reviewer_id)
        self.assertEqual(self.voiceover_application.status, 'rejected')
        self.assertEqual(
            self.voiceover_application.rejection_message, 'rejection message')