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'])
Esempio n. 2
0
    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"])
Esempio n. 3
0
 def test_tops(self):
     from pyEX import tops
     tops(C)
     tops([C])