Exemplo n.º 1
0
def mock_roomnames():
    with patch("fah.pfreeathome.get_room_names",
               return_value={"00": {
                   "00": "room1",
                   "01": "room2"
               }}):
        yield
Exemplo n.º 2
0
def mock_init():
    with patch("fah.pfreeathome.Client.__init__", return_value=None):
        yield