Пример #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
Пример #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
Пример #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)
Пример #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)
Пример #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)
Пример #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)