def test_has_group_address(self): """Test has_group_address.""" xknx = XKNX(loop=self.loop) notification = Notification(xknx, 'Warning', group_address='1/2/3', group_address_state='1/2/4') self.assertTrue(notification.has_group_address(GroupAddress('1/2/3'))) self.assertTrue(notification.has_group_address(GroupAddress('1/2/4'))) self.assertFalse(notification.has_group_address(GroupAddress('2/2/2')))
def test_has_group_address(self): """Test has_group_address.""" xknx = XKNX() notification = Notification(xknx, "Warning", group_address="1/2/3", group_address_state="1/2/4") assert notification.has_group_address(GroupAddress("1/2/3")) assert notification.has_group_address(GroupAddress("1/2/4")) assert not notification.has_group_address(GroupAddress("2/2/2"))
def test_has_group_address(self): """Test has_group_address.""" xknx = XKNX(loop=self.loop) notification = Notification(xknx, "Warning", group_address="1/2/3", group_address_state="1/2/4") self.assertTrue(notification.has_group_address(GroupAddress("1/2/3"))) self.assertTrue(notification.has_group_address(GroupAddress("1/2/4"))) self.assertFalse(notification.has_group_address(GroupAddress("2/2/2")))