Exemplo n.º 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())
Exemplo n.º 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)
Exemplo n.º 3
0
def test_fasthello():
  assert hello.hello() == "Super hello"
Exemplo n.º 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())
Exemplo n.º 5
0
def test_fasthello():
  assert hello.hello() == '\n'.join([
    'Hello from C!',
    'Hello from C++!',
  ])
Exemplo n.º 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)
Exemplo n.º 7
0
def test_fasthello():
    assert hello.hello() == '\n'.join([
        'Hello from C!',
        'Hello from C++!',
    ])
Exemplo n.º 8
0
def test_fasthello():
    assert hello.hello() == "Super hello"