Esempio n. 1
0
# coding=utf-8
# Copyright 2014 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 sys

from example.hello.greet.greet import greet

if __name__ == '__main__':
    greetees = sys.argv[1:] or ['world']
    for greetee in greetees:
        print(greet(greetee))
Esempio n. 2
0
 def test_greeting_mentions_addressee(self):
     """Fancy formatting should not omit the person we're greeting"""
     assert ('foo' in greet('foo'))
Esempio n. 3
0
 def test_greeting_mentions_addressee(self):
   """Fancy formatting should not omit the person we're greeting"""
   assert('foo' in greet('foo'))
Esempio n. 4
0
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

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

from example.hello.greet.greet import greet

if __name__ == '__main__':
    print(greet('world'))
Esempio n. 5
0
File: main.py Progetto: aoen/pants
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

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

from example.hello.greet.greet import greet

if __name__ == '__main__':
  print(greet('world'))
Esempio n. 6
0
# coding=utf-8
# Copyright 2014 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 sys

from example.hello.greet.greet import greet


if __name__ == '__main__':
  greetees = sys.argv[1:] or ['world']
  for greetee in greetees:
    print(greet(greetee))