def test_check_condition(self): sense_condition = "{features.sense}='true'" server_tether_condition = "{properties.server-tether}='sync'" test_app1, test_app2, test_app3, test_app4 = self.set_up_apps(4) test_app1.profile["features"]["sense"] = True test_app2.profile["features"]["sense"] = False test_app3.profile["features"]["sense"] = 'true' test_app4.profile["properties"]["server-tether"] = 'sync' self.assertTrue(check_condition(test_app1, sense_condition)) self.assertFalse(check_condition(test_app2, sense_condition)) self.assertTrue(check_condition(test_app3, sense_condition)) self.assertTrue(check_condition(test_app4, server_tether_condition))