import nose
import temperatura
def test_freezing():
'''Test freezing point.'''
assert to_celsius(32) == 0
def test_boiling():
'''Test boiling point.'''
assert to_celsius(212) == 100
def test_roundoff():
'''Test that roundoff works.'''
assert to_celsius(100) == 38 # NOT 37.777...
def test_above_freezing():
'''Test function for above_freezing.'''
assert above_freezing(89.4), 'A temperature above freezing.'
assert not above_freezing(-42), 'A temperature below freezing.'
assert not above_freezing(0), 'A temperature at freezing.'
if __name__ == '__main__':
nose.runmodule()