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