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