示例#1
0
文件: scene_test.py 项目: cian/xknx
 def test_has_group_address(self):
     """Test has_group_address."""
     xknx = XKNX(loop=self.loop)
     scene = Scene(xknx,
                   "TestScene",
                   group_address="1/2/1",
                   scene_number=23)
     self.assertTrue(scene.has_group_address(GroupAddress("1/2/1")))
     self.assertFalse(scene.has_group_address(GroupAddress("2/2/2")))
示例#2
0
文件: scene_test.py 项目: XKNX/xknx
 def test_has_group_address(self):
     """Test has_group_address."""
     xknx = XKNX()
     scene = Scene(xknx,
                   "TestScene",
                   group_address="1/2/1",
                   scene_number=23)
     assert scene.has_group_address(GroupAddress("1/2/1"))
     assert not scene.has_group_address(GroupAddress("2/2/2"))
示例#3
0
 def test_has_group_address(self):
     """Test has_group_address."""
     xknx = XKNX(loop=self.loop)
     scene = Scene(xknx,
                   'TestScene',
                   group_address='1/2/1',
                   scene_number=23)
     self.assertTrue(scene.has_group_address(GroupAddress('1/2/1')))
     self.assertFalse(scene.has_group_address(GroupAddress('2/2/2')))
示例#4
0
文件: scene_test.py 项目: phbaer/xknx
 def test_has_group_address(self):
     """Test has_group_address."""
     xknx = XKNX(loop=self.loop)
     scene = Scene(
         xknx,
         'TestScene',
         group_address='1/2/1',
         scene_number=23)
     self.assertTrue(scene.has_group_address(GroupAddress('1/2/1')))
     self.assertFalse(scene.has_group_address(GroupAddress('2/2/2')))