Пример #1
0
 def testValAttrReadOnly(self):
     """ val attribute should not be writable"""
     s1 = Signal(1)
     try:
         s1.val = 1
     except AttributeError:
         pass
     else:
         self.fail()
Пример #2
0
 def testValAttrReadOnly(self):
     """ val attribute should not be writable"""
     s1 = Signal(1)
     try:
         s1.val = 1
     except AttributeError:
         pass
     else:
         self.fail()
Пример #3
0
 def testValAttrReadOnly(self):
     """ val attribute should not be writable"""
     s1 = Signal(1)
     with pytest.raises(AttributeError):
         s1.val = 1
Пример #4
0
 def testValAttrReadOnly(self):
     """ val attribute should not be writable"""
     s1 = Signal(1)
     with pytest.raises(AttributeError):
         s1.val = 1