示例#1
0
def main():
    func1()
    func2()
    func3()

    my_obj = MyClass('Bilbao', 'Igorre', 'Leioa')
    my_obj.hello()
    my_obj.not_hello()
示例#2
0
def main():
    print 'Testing mytest functions and main class...'
    func1()
    func2()
    func3()
    myobj = MyClass(1, 2, 3)
    myobj.hello()
    myobj.not_hello()
示例#3
0
def main():
    print 'Testing mytest functions and main class...'
    func1()
    func2()
    func3()
    myobj = MyClass(1, 2, 3)
    myobj.hello()
    myobj.not_hello()
示例#4
0
def main():
    '''Testing Function import'''
    func1()
    func2()
    func3()
    print 'If you see World, Simple and Whatever on the 3 lines above this is successful'

    print '#' * 40
    print 'Should see telnet and ssh commands below'
    obj = MyClass('10.4.4.4', 'lastuser', '4044')
    obj.hello()
    obj.not_hello()
示例#5
0
def main():
    '''Testing Function import'''
    func1()
    func2()
    func3()
    print 'If you see World, Simple and Whatever on the 3 lines above this is successful'

    print '#' * 40
    print 'Should see telnet and ssh commands below'
    obj = MyClass('10.4.4.4', 'lastuser', '4044')
    obj.hello()
    obj.not_hello()
示例#6
0
def main():
    '''Main func'''
    print
    print "Testing func1...",
    func1()
    print "Testing func2...",
    func2()
    print "Testing func3...",
    func3()

    print "\nTesting MyClass..."
    my_obj = MyClass(1, 3, 5)
    my_obj.hello()
    my_obj.not_hello()
    print
示例#7
0
def main():
    '''Main func'''
    print()
    print("Testing func1...", end="")
    func1()
    print("Testing func2...", end="")
    func2()
    print("Testing func3...", end="")
    func3()

    print("\nTesting MyClass...")
    my_obj = MyClass('a', 'b', 'c')
    my_obj.hello()
    my_obj.not_hello()
    print()
示例#8
0
def main():
    '''Main func'''
    print
    print "Testing func1...",
    func1()
    print "Testing func2...",
    func2()
    print "Testing func3...",
    func3()

    print "\nTesting MyClass..."
    my_obj = MyClass('a', 'b', 'c')
    my_obj.hello()
    my_obj.not_hello()
    print
def main():
    print " function 1 display: \n"
    func1()
    print "\n"
    print " function 2 display: \n"
    func2()
    print "\n"
    print " function 3 display: \n"
    func3()
    print "\n"
    print " MyClass  display: \n"
    my_obj = MyClass( "January", 2, "Mach")
    my_obj.x
    print "\n"
    my_obj.y
    print "\n"
    my_obj.z
    print "\n"
    my_obj.hello()
    print "\n"
    my_obj.not_hello()
    print "\n"