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
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
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)
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)