def test_get_attachments_empty(self): service = BaseEmailService() self.assertEqual(service.get_attachments(), [])
def test_get_attachments_regular(self): file_path = 'usr/albertus/myfile.csv' service = BaseEmailService(attachment_list=[file_path]) self.assertEqual(service.get_attachments(), [file_path])