def test_duration_argument_is_not_an_integer(self):
        with self.assertRaises(TypeError) as cm:
            DurationMixin(duration='not an integer')

        self.assertEqual(
            cm.exception.message,
            'DurationMixin.duration should be an non-negative float, not str'
        )
testing if a TypeError will be raised when the duration argument is
dataset/ETHPy150Open eoyilmaz/anima/tests/previs/test_duration_mixin.py/DurationAttrMixinTestCase.test_duration_argument_is_not_an_integer