def test_duration_property_is_working_properly(self):
        shot1 = pymel.core.createNode('shot')
        shot1.set_handle(10)
        shot1.startFrame.set(10)
        shot1.endFrame.set(20)
        shot1.sequenceStartFrame.set(25)

        self.assertEqual(shot1.duration, 11)
testing if the duration property is working properly
dataset/ETHPy150Open eoyilmaz/anima/tests/previs/test_shot_extension.py/ShotExtensionTestCase.test_duration_property_is_working_properly