Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(5)  |  Derive(0)  |  Import(6)

src/p/y/pytomation-HEAD/tests/interfaces/tomato.py   pytomation(Download)
import time
 
from unittest import TestCase
 
from tests.common import MockInterface, Mock_Interface
    def setUp(self):
        self.host = '192.168.13.1'
#        self.i = HTTP('http', self.host, username='root', password='password')
        self.i = Mock_Interface()
        self.interface = TomatoInterface(self.i, self.host, http_id='asdfaadsfasdf234')

src/p/y/pytomation-HEAD/tests/interfaces/sparkio.py   pytomation(Download)
import time
 
from unittest import TestCase
 
from tests.common import MockInterface, Mock_Interface

src/p/y/pytomation-HEAD/tests/interfaces/nest_thermostat.py   pytomation(Download)
import time
 
from unittest import TestCase
 
from tests.common import MockInterface, Mock_Interface
    def setUp(self):
        self.host = '192.168.13.210'
#        self.i = HTTP('http', self.host)
        self.i = Mock_Interface()
#        self.interface = Nest(self.i, self.host)

src/p/y/pytomation-HEAD/tests/interfaces/insteon2.py   pytomation(Download)
from mock import Mock
 
from tests.common import MockInterface, Mock_Interface, Command
from pytomation.interfaces import InsteonPLM2, Serial, HACommand, \
                                    TCP, Conversions
    def setUp(self):
        self.ms = Mock_Interface()
        self.insteon = InsteonPLM2(self.ms)
 
# If we are running live, the insteon interface doesnt like to be bombarded with requests

src/p/y/pytomation-HEAD/tests/interfaces/insteon.py   pytomation(Download)
from mock import Mock
 
from tests.common import MockInterface, Mock_Interface, Command
from pytomation.interfaces import InsteonPLM, Serial, HACommand, \
                                    TCP, Conversions
    def setUp(self):
        self.ms = Mock_Interface()
        self.insteon = InsteonPLM(self.ms)
 
# If we are running live, the insteon interface doesnt like to be bombarded with requests

src/p/y/pytomation-HEAD/tests/interfaces/hw_thermostat.py   pytomation(Download)
import time
 
from unittest import TestCase
 
from tests.common import MockInterface, Mock_Interface
    def setUp(self):
        self.host = '192.168.13.211'
#        self.i = HTTP('http', self.host)
        self.i = Mock_Interface()
        self.interface = HW_Thermostat(self.i, self.host)