@@ -0,0 +1,552 @@
+import unittest%0Afrom kivy.uix.stacklayout import StackLayout%0Afrom kivy.uix.widget import Widget%0A%0Aclass PaddingSpacingTestCase(unittest.TestCase):%0A    def test_tb_lr_stacklayout(self):%0A        stacklayout = StackLayout(%0A                orientation='tb-lr',%0A                size=(200, 200),%0A                padding=20,%0A                spacing=10,%0A                )%0A%0A        widget = Widget(width=100, size_hint=(0.2, 0.4))%0A        stacklayout.add_widget(widget)%0A        stacklayout.do_layout()%0A%0A        self.assertEqual(stacklayout.top - widget.top, 20)%0A

Add test for issue #1091.