In [ ]:
''' Unit tests for ee_utils.py '''

import unittest
import os


% run 'ee_utils.ipynb'
initialize_api()



class TestProntoUtils(unittest.TestCase):

    # Did authetication work? 
    def testAuthentication(self):
        try:
            ee.Initialize()
            print("Authentication successful!")
        except:
            print('Authentication failed')

    #Did the metadata actually export and save? 
    def testMetadatasave(self):
        self.assertTrue(os.path.exists('missco2_metadata.txt '), "Failed to save image data.")
        

        
if __name__ == '__main__':
    unittest.main()