1# Copyright 2016 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the 'License');
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an 'AS IS' BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import logging
16
17from mobly import asserts
18from mobly import base_test
19from mobly import test_runner
20from tests.lib import mock_controller
21
22
23class IntegrationTest(base_test.BaseTestClass):
24
25  def setup_class(self):
26    self.register_controller(mock_controller)
27
28  def test_hello_world(self):
29    asserts.assert_equal(self.user_params['icecream'], 42)
30    asserts.assert_equal(self.user_params['extra_param'], 'haha')
31    logging.info(
32        'This is a bare minimal test to make sure the basic MOBLY'
33        ' test flow works.'
34    )
35    asserts.explicit_pass(
36        'Hello World',
37        # Use a unicode string here to make sure the full log pipeline
38        # works with unicode.
39        extras='\u2022',
40    )
41
42
43if __name__ == '__main__':
44  test_runner.main()
45