Example #1
0
def test_hello():
    assert example.hello() == 'Hello, world!'
Example #2
0
 def it_should_hello(self):
     msg = example.hello(greet='Greeting',
                         app_name='Hello Method',
                         user='******')
     jazz.expect(msg).toEqual('<p>Hello Method: Greeting Test User</p>')
Example #3
0
 def test_example(self):
     self.assertEqual(example.hello(), 'Hello')
Example #4
0
import example
print(example.hello())
Example #5
0
import os.path, sys
import distutils.util

# Append the directory in which the binaries were placed to Python's sys.path,
# then import the D DLL.
libDir = os.path.join(
    'build', 'lib.%s-%s' % (distutils.util.get_platform(), '.'.join(
        str(v) for v in sys.version_info[:2])))
sys.path.append(os.path.abspath(libDir))
import example

example.hello()

b = example.Base()
d = example.Derived()

b.foo()
b.bar()
d.foo()
d.bar()
Example #6
0
import os.path, sys
import distutils.util

# Append the directory in which the binaries were placed to Python's sys.path,
# then import the D DLL.
libDir = os.path.join(
    "build", "lib.%s-%s" % (distutils.util.get_platform(), ".".join(str(v) for v in sys.version_info[:2]))
)
sys.path.append(os.path.abspath(libDir))
import example

example.hello()

b = example.Base()
d = example.Derived()

b.foo()
b.bar()
d.foo()
d.bar()
Example #7
0
 def it_should_hello(self):
   msg = example.hello(
       greet='Greeting', app_name='Hello Method', user='******')
   jazz.expect(msg).toEqual('<p>Hello Method: Greeting Test User</p>')