<filename>test/default_worker/unit/atom/test_create_digital_object.py
import unittest
import os

from utils.atom_api import create_digital_object
from utils.object import Object


class CreateDigitalObjectTest(unittest.TestCase):

    resource_dir = os.environ['TEST_RESOURCE_DIR']

    def test_create_digital_object(self):
        obj = Object(
            f'{self.resource_dir}/objects/a_archival_description_0001'
        )
        create_digital_object(obj)

<filename>test/default_worker/unit/atom/test_create_digital_object.py
import unittest
import os

from utils.atom_api import create_digital_object
from utils.object import Object


class CreateDigitalObjectTest(unittest.TestCase):

    resource_dir = os.environ['TEST_RESOURCE_DIR']

    def test_create_digital_object(self):
        obj = Object(
            f'{self.resource_dir}/objects/a_archival_description_0001'
        )
        create_digital_object(obj)
