File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,29 @@ def test_apply(self):
29
29
sun_azimuth = 2.0 ,
30
30
sun_elevation = 1.0 )
31
31
32
+ def test_apply_one (self ):
33
+ item = next (TestCases .test_case_2 ().get_all_items ())
34
+ with self .assertRaises (ExtensionError ):
35
+ item .ext .view
36
+
37
+ item .ext .enable (Extensions .VIEW )
38
+ item .ext .view .apply (off_nadir = 1.0 )
39
+
40
+ @unittest .expectedFailure
41
+ def test_apply_none (self ):
42
+ item = next (TestCases .test_case_2 ().get_all_items ())
43
+ with self .assertRaises (ExtensionError ):
44
+ item .ext .view
45
+
46
+ item .ext .enable (Extensions .VIEW )
47
+ item .ext .view .apply (
48
+ off_nadir = None ,
49
+ incidence_angle = None ,
50
+ azimuth = None ,
51
+ sun_azimuth = None ,
52
+ sun_elevation = None ,
53
+ )
54
+
32
55
def test_validate_view (self ):
33
56
item = pystac .read_file (self .example_uri )
34
57
item .validate ()
You can’t perform that action at this time.
0 commit comments