def setUp(self):
     logging.basicConfig(
         level=logging.FATAL,
         format=
         u'%(asctime)s %(name)s:%(lineno)d %(levelname)s : %(message)s')
     self.session = session.TestSession(self)
     self.event = self.session.setup_event(OpenweathermapWeatherUpdateEvent)
    def setUp(self):
        logging.basicConfig(
            level=logging.FATAL,
            format=
            u'%(asctime)s %(name)s:%(lineno)d %(levelname)s : %(message)s')
        self.session = session.TestSession(self)

        self.formatter = WeatherToNamedMessageFormatter(
            {'events_broker': Mock()})
Example #3
0
    def setUp(self):
        logging.basicConfig(
            level=logging.FATAL,
            format=
            u'%(asctime)s %(name)s:%(lineno)d %(levelname)s : %(message)s')
        self.session = session.TestSession(self)

        self.path = os.path.join(os.getcwd(), 'DUMMY_DONGLE_TINFO_USB')
        cteleinfo.Parser = Mock(return_value=MockedParser(self.DATA))
        cteleinfo.UTInfo2 = Mock()
Example #4
0
    def setUp(self):
        logging.basicConfig(
            level=logging.CRITICAL,
            format=
            u'%(asctime)s %(name)s:%(lineno)d %(levelname)s : %(message)s')
        self.session = session.TestSession(self)

        cteleinfo.UTInfo2 = Mock()
        self.mocked_parser = MockedParser({})
        cteleinfo.Parser = Mock(return_value=self.mocked_parser)
        self.path = os.path.join(os.getcwd(), 'DUMMY_DONGLE_TINFO_USB')
        with io.open(self.path, 'w') as f:
            f.write(u'')
Example #5
0
    def setUp(self):
        logging.basicConfig(
            level=logging.CRITICAL,
            format=
            u'%(asctime)s %(name)s:%(lineno)d %(levelname)s : %(message)s')
        self.session = session.TestSession(self)

        cteleinfo.UTInfo2 = Mock()
        cteleinfo.Parser = Mock(return_value=MockedParser(self.DATA))
        self.path = os.path.join(os.getcwd(), 'DUMMY_DONGLE_TINFO_USB')
        with io.open(self.path, 'w') as f:
            f.write(u'')
        Teleinfo_ = self.session.clone_class(cteleinfo.Cteleinfo)
        Teleinfo_.USB_PATH = os.path.abspath('./') + '/'
        Teleinfo_._teleinfo_task = Mock()
        self.module = self.session.setup(Teleinfo_)
        self.session.start_module(self.module)
 def setUp(self):
     logging.basicConfig(level=logging.FATAL, format=u'%(asctime)s %(name)s:%(lineno)d %(levelname)s : %(message)s')
     self.session = session.TestSession(self)
     self.event = self.session.setup_event(DeveloperFrontendRestartEvent)
 def setUp(self):
     logging.basicConfig(level=logging.FATAL, format=u'%(asctime)s %(name)s:%(lineno)d %(levelname)s : %(message)s')
     self.session = session.TestSession(self)
     with open('test.log', 'a') as fd:
         fd.write('%s\n' % self.id())
Example #8
0
 def setUp(self):
     logging.basicConfig(
         level=logging.FATAL,
         format=
         u'%(asctime)s %(name)s:%(lineno)d %(levelname)s : %(message)s')
     self.session = session.TestSession(self)