Example #1
0
def main():
    mytest.func1()
    mytest.func2()
    mytest.func3()

    tempclass = mytest.MyClass(1, 'some string', 4)
    tempclass.hello()
    tempclass.not_hello()
Example #2
0
def main():
    func1()
    func2()
    func3()

    my_obj = MyClass('Bilbao', 'Igorre', 'Leioa')
    my_obj.hello()
    my_obj.not_hello()
Example #3
0
def main():
    mytest.func1()
    mytest.func2()
    mytest.func3()

    x = mytest.MyClass('Steacie','010','342')
    x.hello()
    x.not_hello()
Example #4
0
def main():
    print 'Testing mytest functions and main class...'
    func1()
    func2()
    func3()
    myobj = MyClass(1, 2, 3)
    myobj.hello()
    myobj.not_hello()
Example #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()
Example #6
0
def main():

    word = negative('Hello','World',2)
    print word.changeme()

    word2 = Myclass('Hello','World', 2)
    print word2.repeat()
    
    word3 = MyChildClass('Hello','World',2)
    print word3.negate()

    mytest.func1()
    mytest.func2()
    mytest.func3()
Example #7
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"
Example #9
0
    print '-' * 30
    cwd = os.getcwd()
    print cwd
    print
    print 'Python sys path:'
    pprint (path)
    print '-' * 50
    print
    
    print 'func1'
    print '-' *15
    mytest.func1()
    print
    print 'func2'
    print '-' *15
    mytest.func2()
    print
    print 'func3'
    print '-' *15
    mytest.func3()

    a_class = mytest.MyClass(10, 25, 30)
    print
    print 'hello'
    print '-' *15
    a_class.hello()
    print
    print 'not hello'
    print '-' *15
    a_class.not_hello()