Ejemplo 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
Ejemplo 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
Ejemplo 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)
Ejemplo n.º 4
0
 def test_viewgroup_getter_fixed(self):
     tr = Layout()
     tr.fixed = True
     try:
         tr.Test.Path
         raise AssertionError
     except AttributeError as e:
         self.assertEqual(str(e), self.fixed_error)
Ejemplo n.º 5
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)
Ejemplo n.º 6
0
 def test_layout_getter_fixed(self):
     tr = Layout()
     tr.fixed = True
     try:
         tr.Test.Path
         raise AssertionError
     except AttributeError as e:
         self.assertEqual(str(e), self.fixed_error)