File indexing completed on 2025-06-01 04:02:27
0001 from .. import base 0002 from lottie import objects 0003 from .test_helpers import TestTransform 0004 0005 0006 class TestNullLayer(base.TestCase): 0007 def test_empty(self): 0008 lay = objects.NullLayer() 0009 self.assertDictEqual( 0010 lay.to_dict(), 0011 { 0012 "ty": 3, 0013 "ks": TestTransform._plain_out, 0014 "ao": 0, 0015 "ddd": 0, 0016 "st": 0, 0017 "sr": 1, 0018 "bm": 0, 0019 } 0020 ) 0021 0022 0023 class TestShapeLayer(base.TestCase): 0024 def test_empty(self): 0025 lay = objects.ShapeLayer() 0026 self.assertDictEqual( 0027 lay.to_dict(), 0028 { 0029 "ty": 4, 0030 "ks": TestTransform._plain_out, 0031 "ao": 0, 0032 "bm": 0, 0033 "ddd": 0, 0034 "st": 0, 0035 "sr": 1, 0036 "shapes": [], 0037 "bm": 0, 0038 } 0039 )