Esempio n. 1
0
class TestEnv(TestCase):
    def setUp(self):
        self.call_log_env = CallLogEnv()
        self.contact_env = ContactAppEnv()
        self.gps_env = GPSAppEnv()
        self.settings_env = SettingsAppEnv()
        self.sms_log_env = SMSLogEnv()

    def test_to_json(self):
        app_env_json = self.call_log_env.to_json()
        app_env_json_dict = json.loads(app_env_json)
        self.assertTrue('env_type' in app_env_json_dict.keys())

    def test_deploy(self):
        device = Device("emulator-5554")
        self.assertTrue(self.call_log_env.deploy(device))
        self.assertTrue(self.contact_env.deploy(device))
        self.assertTrue(self.gps_env.deploy(device))
        self.assertTrue(self.settings_env.deploy(device))
        self.assertTrue(self.sms_log_env.deploy(device))
Esempio n. 2
0
class TestEnv(unittest.TestCase):
    def setUp(self):
        self.call_log_env = CallLogEnv()
        self.contact_env = ContactAppEnv()
        self.gps_env = GPSAppEnv()
        self.settings_env = SettingsAppEnv()
        self.sms_log_env = SMSLogEnv()

    def test_to_json(self):
        app_env_json = self.call_log_env.to_json()
        app_env_json_dict = json.loads(app_env_json)
        self.assertTrue('env_type' in app_env_json_dict.keys())

    def test_deploy(self):
        device = Device("emulator-5554")
        self.assertTrue(self.call_log_env.deploy(device))
        self.assertTrue(self.contact_env.deploy(device))
        self.assertTrue(self.gps_env.deploy(device))
        self.assertTrue(self.settings_env.deploy(device))
        self.assertTrue(self.sms_log_env.deploy(device))
        device.disconnect()
Esempio n. 3
0
 def setUp(self):
     self.call_log_env = CallLogEnv()
     self.contact_env = ContactAppEnv()
     self.gps_env = GPSAppEnv()
     self.settings_env = SettingsAppEnv()
     self.sms_log_env = SMSLogEnv()
Esempio n. 4
0
 def setUp(self):
     self.call_log_env = CallLogEnv()
     self.contact_env = ContactAppEnv()
     self.gps_env = GPSAppEnv()
     self.settings_env = SettingsAppEnv()
     self.sms_log_env = SMSLogEnv()