示例#1
0
    def test_fgm(self):
        df = artemis.fgm(self.probe, 'l', 'dsl', self.starttime, self.endtime)
        check_data_output(df)

        with pytest.raises(ValueError):
            artemis.fgm('123', 'h', 'dsl', self.starttime, self.endtime)
        with pytest.raises(ValueError):
            artemis.fgm('1', '123', 'dsl', self.starttime, self.endtime)
        with pytest.raises(ValueError):
            artemis.fgm('1', 'h', '123', self.starttime, self.endtime)
示例#2
0
def test_artemis():
    starttime = datetime(2008, 1, 1, 0, 0, 0)
    endtime = datetime(2008, 1, 2, 0, 0, 0)
    probe = 'a'
    artemis.fgm(probe, 'h', 'dsl', starttime, endtime)