def test_tops(self): from pyEX import tops with patch('requests.get') as mock: mock.return_value = MagicMock() mock.return_value.status_code = 200 tops() tops('test') tops(['test'])
def test_tops(self): from pyEX import tops with patch("requests.get") as mock: mock.return_value = MagicMock() mock.return_value.status_code = 200 tops() tops("test") tops(["test"])
def test_tops(self): from pyEX import tops tops(C) tops([C])