# -*- coding: utf-8 -*-
import numpy as np
import ibei
from astropy import units
import unittest

temp_sun = 5762.
temp_earth = 288.
bandgap = 1.15

class Issues(unittest.TestCase):
    """
    Tests output types of the calculator methods.
    """
    def test_issue_1_devos_efficiency(self):
        """
        Unit system needs to be specified for astropy.constants.e to work.
        """
        try:
            ibei.devos_efficiency(bandgap, temp_sun, temp_earth, 1.09)
        except:
            self.fail("Unit system not initialized.")

if __name__ == "__main__":
    pass

# -*- coding: utf-8 -*-
import numpy as np
import ibei
from astropy import units
import unittest

temp_sun = 5762.
temp_earth = 288.
bandgap = 1.15

class Issues(unittest.TestCase):
    """
    Tests output types of the calculator methods.
    """
    def test_issue_1_devos_efficiency(self):
        """
        Unit system needs to be specified for astropy.constants.e to work.
        """
        try:
            ibei.devos_efficiency(bandgap, temp_sun, temp_earth, 1.09)
        except:
            self.fail("Unit system not initialized.")

    def test_issue_2_devos_efficiency(self):
        """
        devos_efficiency unexpectedly raises TypeError for certain args

        >>> bandgap = 1.15
        >>> temp_sun = 5762.
        >>> temp_earth = 288.
        >>> ibei.devos_efficiency(bandgap, temp_sun, temp_earth, 1.2)
        """
        try:
            ibei.devos_efficiency(bandgap, temp_sun, temp_earth, 1.2)
        except:
            self.fail("Error raised with arguments.")


if __name__ == "__main__":
    pass

Add test for issue #2