# Path: pyLIMA/event.py
# class EventException(Exception):
# class Event(object):
#     def __init__(self):
#     def fit(self, model, method, DE_population_size=10, flux_estimation_MCMC='MCMC', fix_parameters_dictionnary=None,
#             grid_resolution=10, computational_pool=None, binary_regime=None):
#     def telescopes_names(self):
#     def check_event(self):
#     def find_survey(self, choice=None):
#     def lightcurves_in_flux(self, choice='Yes'):
#     def compute_parallax_all_telescopes(self, parallax_model):
#     def total_number_of_data_points(self):


import numpy as np
import unittest.mock as mock
import pytest
from pyLIMA import event
    telescope2.name = 'telescope2'

    current_event.telescopes.append(telescope1)
    current_event.telescopes.append(telescope2)

    current_event.telescopes_names()


def test_fit_bad_event_type():
    current_event = event.Event()
    current_event.kind = 'I am not microlensing'

    with pytest.raises(event.EventException) as event_exception:
        current_event.fit('PSPL', 'LM')
    assert 'Can not fit this event kind' in str(event_exception.value)


def test_fit_bad_method():
    current_event = event.Event()

    with pytest.raises(event.EventException) as event_exception:
        current_event.fit('PSPL', 'I am not a fitter :)')
    assert 'Wrong fit method request' in str(event_exception.value)

    with pytest.raises(event.EventException) as event_exception:
        current_event.fit('PSPL', 51)
    assert 'Wrong fit method request' in str(event_exception.value)


def test_find_survey():

# Path: pyLIMA/event.py
# class EventException(Exception):
# class Event(object):
#     def __init__(self):
#     def fit(self, model, method, DE_population_size=10, flux_estimation_MCMC='MCMC', fix_parameters_dictionnary=None,
#             grid_resolution=10, computational_pool=None, binary_regime=None):
#     def telescopes_names(self):
#     def check_event(self):
#     def find_survey(self, choice=None):
#     def lightcurves_in_flux(self, choice='Yes'):
#     def compute_parallax_all_telescopes(self, parallax_model):
#     def total_number_of_data_points(self):


# Path: pyLIMA/test/test_event.py
import numpy as np
import unittest.mock as mock
import pytest
from pyLIMA import event

    telescope2.name = 'telescope2'

    current_event.telescopes.append(telescope1)
    current_event.telescopes.append(telescope2)

    current_event.telescopes_names()


def test_fit_bad_event_type():
    current_event = event.Event()
    current_event.kind = 'I am not microlensing'

    with pytest.raises(event.EventException) as event_exception:
        current_event.fit('PSPL', 'LM')
    assert 'Can not fit this event kind' in str(event_exception.value)


def test_fit_bad_method():
    current_event = event.Event()

    with pytest.raises(event.EventException) as event_exception:
        current_event.fit('PSPL', 'I am not a fitter :)')
    assert 'Wrong fit method request' in str(event_exception.value)

    with pytest.raises(event.EventException) as event_exception:
        current_event.fit('PSPL', 51)
    assert 'Wrong fit method request' in str(event_exception.value)


def test_find_survey():

    current_event = event.Event()