Exemplo n.º 1
0
 def test_viewgroup_toggle_fixed(self):
     tr = Layout()
     tr.fixed = True
     try:
         tr.Test = 42
         raise AssertionError
     except AttributeError as e:
         self.assertEqual(str(e), self.fixed_error)
     tr.fixed = False
     tr.Test = 42
Exemplo n.º 2
0
 def test_layout_toggle_fixed(self):
     tr = Layout()
     tr.fixed = True
     try:
         tr.Test = 42
         raise AssertionError
     except AttributeError as e:
         self.assertEqual(str(e), self.fixed_error)
     tr.fixed = False
     tr.Test = 42
Exemplo n.º 3
0
 def test_viewgroup_shallow_fixed_setter(self):
     tr = Layout()
     tr.fixed = True
     try:
         tr.Test = 42
         raise AssertionError
     except AttributeError as e:
         self.assertEqual(str(e), self.fixed_error)
Exemplo n.º 4
0
 def test_layout_shallow_fixed_setter(self):
     tr = Layout()
     tr.fixed = True
     try:
         tr.Test = 42
         raise AssertionError
     except AttributeError as e:
         self.assertEqual(str(e), self.fixed_error)