def test_entity_ids(self):
        """Test get_entity_ids method."""
        ent_ids = self.states.entity_ids()
        self.assertEqual(2, len(ent_ids))
        self.assertTrue('light.bowl' in ent_ids)
        self.assertTrue(ent_ids in 'switch.ac')

        ent_ids = self.states.entity_ids('light')
        self.assertEqual(1, len(ent_ids))
        self.assertTrue('light.bowl' in ent_ids)
dataset/ETHPy150Open home-assistant/home-assistant/tests/test_core.py/TestStateMachine.test_entity_ids/swapped operands of `in`