Example #1
0
 def test_load_one_surface_and_one_surface_list(self, surf_list,
                                                filter_surface):
     rad_table = e_utils.combine_surface_effects(
         [surf_list, filter_surface])
     len1 = len(surf_list.table)
     len2 = len(rad_table.table)
     assert len2 == len1 + 1
Example #2
0
 def test_load_two_surface_lists(self, surf_list):
     rad_table = e_utils.combine_surface_effects([surf_list, surf_list])
     len1 = len(surf_list.radiometry_table.table)
     len2 = len(rad_table.radiometry_table.table)
     assert len2 == 2 * len1
Example #3
0
 def test_load_just_one_surface(self, filter_surface):
     rad_table = e_utils.combine_surface_effects([filter_surface])
     assert isinstance(rad_table, SurfaceList)
Example #4
0
 def test_load_two_surfaces(self, filter_surface):
     rad_table = e_utils.combine_surface_effects([filter_surface] * 3)
     assert len(rad_table.radiometry_table.table) == 3
Example #5
0
 def test_load_one_surface_and_one_surface_list(self, surf_list,
                                                filter_surface):
     new_surf_list = eu.combine_surface_effects([filter_surface, surf_list])
     assert len(new_surf_list.table) == len(surf_list.table) + 1
Example #6
0
 def test_load_two_surface_lists(self, surf_list):
     new_surf_list = eu.combine_surface_effects([surf_list] * 3)
     assert len(new_surf_list.table) == 3 * len(surf_list.table)
Example #7
0
 def test_load_just_one_surface_list(self, surf_list):
     new_surf_list = eu.combine_surface_effects([surf_list])
     assert len(new_surf_list.table) == len(surf_list.table)
Example #8
0
 def test_load_two_surfaces(self, filter_surface):
     surf_list = eu.combine_surface_effects([filter_surface] * 3)
     assert len(surf_list.table) == 3
Example #9
0
 def test_load_just_one_surface(self, filter_surface):
     surf_list = eu.combine_surface_effects([filter_surface])
     assert isinstance(surf_list, SurfaceList)
     assert len(surf_list.table) == 1