def test_opHaltStatus(self):
     from pyEX import opHaltStatus
     with patch('requests.get') as mock:
         mock.return_value = MagicMock()
         mock.return_value.status_code = 200
         opHaltStatus()
         opHaltStatus('test')
示例#2
0
文件: test_api.py 项目: Sdoof/pyEX
 def test_opHaltStatus(self):
     from pyEX import opHaltStatus
     opHaltStatus(C)