This file is indexed.

/usr/lib/python2.7/dist-packages/friends_app/emulators/friends_app_utils.py is in friends-app-autopilot 0.92.0+14.04.20140306.1-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
# Copyright 2013 Canonical
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.


class FriendsAppUtils(object):
    """An emulator class that makes it easy to interact with
    general components of the friends-app app.
    """

    def __init__(self, app):
        self.app = app

    def get_main_view(self):
        """Get the main QML view"""
        return self.app.wait_select_single("MainView", objectName="main")

    def get_post_view(self):
        """Get the post QML view"""
        return self.app.wait_select_single("Post", objectName="post")

    def get_stream_model(self):
        """Get the StreamModel"""
        return self.app.wait_select_single(
            "StreamModel", objectName="streamModel")

    def get_toolbar(self):
        """Returns the toolbar in the main events view."""
        main_view = self.get_main_view()
        return main_view.wait_select_single("Toolbar")

    def get_qml_view(self):
        """Get the main QML view"""
        return self.app.wait_select_single("QQuickView")