def test_lobbies_fail_on_wrong_type(self, caplog):
        with pytest.raises(TypeError):
            _ = Convert.lobbies(None)

        for record in caplog.records:
            assert record.levelname == "ERROR"
            assert "Tried to use method with a parameter of type != 'List[MatchLobby]'" in caplog.text
    def test_lobbies(self, lobbies_defaults_payload, lobbies_converted):
        responses.add(
            responses.GET,
            "https://aoe2.net/api/lobbies",
            json=lobbies_defaults_payload,
            status=200,
        )

        result = self.client.lobbies()
        dframe = Convert.lobbies(result)

        assert isinstance(dframe, pd.DataFrame)
        assert dframe.size == 34086
        assert dframe.shape == (598, 57)
        pd.testing.assert_frame_equal(dframe, lobbies_converted)