2828class TestGemini :
2929 def test_observations_query_region (self ):
3030 """ test query against a region of the sky against actual archive """
31- result = gemini .Observations .query_region (coords , radius = 0.3 * units .deg )
31+ result = gemini .GeminiObservations .query_region (coords , radius = 0.3 * units .deg )
3232 assert isinstance (result , Table )
3333 assert len (result ) > 0
3434
3535 def test_observations_query_criteria (self ):
3636 """ test query against an instrument/program via criteria against actual archive """
37- result = gemini .Observations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
37+ result = gemini .GeminiObservations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
3838 observation_type = 'BIAS' )
3939 assert isinstance (result , Table )
4040 assert len (result ) > 0
4141
4242 def test_observations_query_criteria_ascending_sort (self ):
4343 """ test query against an instrument/program via criteria against actual archive """
44- result = gemini .Observations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
44+ result = gemini .GeminiObservations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
4545 observation_type = 'BIAS' , orderby = 'filename_asc' )
4646 assert isinstance (result , Table )
4747 assert len (result ) > 0
@@ -52,7 +52,7 @@ def test_observations_query_criteria_ascending_sort(self):
5252
5353 def test_observations_query_criteria_descending_sort (self ):
5454 """ test query against an instrument/program via criteria against actual archive """
55- result = gemini .Observations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
55+ result = gemini .GeminiObservations .query_criteria (instrument = 'GMOS-N' , program_id = 'GN-CAL20191122' ,
5656 observation_type = 'BIAS' , orderby = 'filename_desc' )
5757 assert isinstance (result , Table )
5858 assert len (result ) > 0
@@ -62,15 +62,15 @@ def test_observations_query_criteria_descending_sort(self):
6262
6363 def test_observations_query_raw (self ):
6464 """ test querying raw against actual archive """
65- result = gemini .Observations .query_raw ('GMOS-N' , 'BIAS' , progid = 'GN-CAL20191122' )
65+ result = gemini .GeminiObservations .query_raw ('GMOS-N' , 'BIAS' , progid = 'GN-CAL20191122' )
6666 assert isinstance (result , Table )
6767 assert len (result ) > 0
6868
6969 def test_get_file (self ):
7070 """ test querying raw against actual archive """
7171 tempdir = tempfile .mkdtemp ('_gemini_test' )
7272 filename = '20190105_GN-CAL20190105_obslog.txt'
73- gemini .Observations .get_file (filename , download_dir = tempdir )
73+ gemini .GeminiObservations .get_file (filename , download_dir = tempdir )
7474 filepath = os .path .join (tempdir , filename )
7575 assert os .path .isfile (filepath )
7676 assert os .stat (filepath ).st_size == 7624
0 commit comments