示例#1
0
 def test_C255r(self):
     s = Symbol('C255', current_value=True)
     self.assertEqual(s.offset, 9810)
     self.assertFalse(s.is_coil())
示例#2
0
 def test_Y0(self):
     s = Symbol('Y33')
     self.assertEqual(s.offset, 33)
     self.assertTrue(s.is_coil())
示例#3
0
 def test_D593(self):
     s = Symbol('D593')
     self.assertEqual(s.offset, 6593)
     self.assertFalse(s.is_coil())
示例#4
0
 def test_C255c(self):
     s = Symbol('C255', current_value=False)
     self.assertEqual(s.offset, 9755)
     self.assertTrue(s.is_coil())
示例#5
0
 def test_R5234_is_5000(self):
     s = Symbol('R5234')
     self.assertEqual(s.offset, 5000)
     self.assertFalse(s.is_coil())
示例#6
0
 def test_R333(self):
     s = Symbol('R333')
     self.assertEqual(s.offset, 333)
     self.assertFalse(s.is_coil())
示例#7
0
 def test_S5(self):
     s = Symbol('S5')
     self.assertEqual(s.offset, 6005)
     self.assertTrue(s.is_coil())
示例#8
0
 def test_M0(self):
     s = Symbol('M0')
     self.assertEqual(s.offset, 2000)
     self.assertTrue(s.is_coil())
示例#9
0
 def test_X10(self):
     s = Symbol('X10')
     self.assertEqual(s.offset, 1010)
     self.assertTrue(s.is_coil())