def test_hello(): assert example.hello() == 'Hello, world!'
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>')
def test_example(self): self.assertEqual(example.hello(), 'Hello')
import example print(example.hello())
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()
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()
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>')