Ejemplo n.º 1
0
    def __init__(self):
        user = AppInfo.system_credentials()
        self.session_id = AppInfo.login(user['username'], user['password'])
        if self.session_id == None:
            create_logger(__name__).info(
                "username / password wrong or user is disaled")

        context = AppInfo.create_context(self.session_id)
        context.get_session_values()['timer_interval'] = 0
        context.get_session_values()['timer_unit'] = 'm'
        AppInfo.save_context(context)
Ejemplo n.º 2
0
 def test_execution(self):
     guest = AppInfo.guest_credentials()
     system = AppInfo.system_credentials()
     self.assertEqual(guest['username'], "guest")
     self.assertEqual(system['username'], "system")