def test_correct_path_if_found(self): os.path.exists.return_value = True found_path = installApp.find_robocop() self.assertTrue(found_path, "Should have found robocop.apk")
def test_null_path_if_not_found(self): os.path.exists.return_value = False found_path = installApp.find_robocop() self.assertFalse(found_path, "Should not have found robocop.apk")