Changeset 25b14be in flex_extract.git for source/pythontest/TestEcFlexpart.py
- Timestamp:
- Sep 23, 2018, 11:40:28 AM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 4971f63
- Parents:
- 5d42acd
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
source/pythontest/TestEcFlexpart.py
r067a0c3 r25b14be 2 2 # -*- coding: utf-8 -*- 3 3 4 import unittest 4 5 5 import sys 6 import EcFlexpart6 import pytest 7 7 8 8 sys.path.append('../python') 9 from classes.EcFlexpart import EcFlexpart 9 10 10 class TestEcFlexpart( unittest.TestCase):11 class TestEcFlexpart(): 11 12 ''' 12 13 ''' 13 14 14 def setUp(self): 15 pass 15 def test_init(self): 16 # create an instance of EcFlexpart and get a dictionary of the 17 # class attributes, compare this dict with an expected dict! 18 assert True == True 16 19 17 def test__init__(): 18 # create an instance of EcFlexpart and get a dictionary of the 19 # class attributes, compare this dict with an expected dict! 20 return 20 def test_write_namelist(self): 21 # simple 22 assert True == True 21 23 22 def test_write_namelist(): 23 # simple 24 return 25 26 def test_retrieve(): 24 def test_retrieve(self): 27 25 # not sure how to check 28 return26 assert True == True 29 27 30 28 … … 36 34 # - create 37 35 # - deacc_fluxes 38 39 40 41 42 if __name__ == "__main__":43 unittest.main()
Note: See TracChangeset
for help on using the changeset viewer.