Example #1
0
# coding=utf-8
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
                        unicode_literals, with_statement)

from hello_package import hello


if __name__ == '__main__':
  print(hello.hello())
Example #2
0
# coding=utf-8
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import absolute_import, division, print_function, unicode_literals

import pycountry
from hello_package import hello


if __name__ == '__main__':
  hello.hello()
  print(pycountry.countries.get(alpha_2='US').name)
Example #3
0
def test_fasthello():
  assert hello.hello() == "Super hello"
Example #4
0
# coding=utf-8
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import absolute_import, division, print_function, unicode_literals

from hello_package import hello

if __name__ == '__main__':
    print(hello.hello())
Example #5
0
def test_fasthello():
  assert hello.hello() == '\n'.join([
    'Hello from C!',
    'Hello from C++!',
  ])
Example #6
0
# coding=utf-8
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import (absolute_import, division, generators, nested_scopes,
                        print_function, unicode_literals, with_statement)

import pycountry
from hello_package import hello

if __name__ == '__main__':
    hello.hello()
    print(pycountry.countries.get(alpha_2='US').name)
Example #7
0
def test_fasthello():
    assert hello.hello() == '\n'.join([
        'Hello from C!',
        'Hello from C++!',
    ])
Example #8
0
def test_fasthello():
    assert hello.hello() == "Super hello"