def main():
    func1()
    func2()
    func3()

    my_obj = MyClass('Bilbao', 'Igorre', 'Leioa')
    my_obj.hello()
    my_obj.not_hello()
Beispiel #2
0
def main():
    print 'Testing mytest functions and main class...'
    func1()
    func2()
    func3()
    myobj = MyClass(1, 2, 3)
    myobj.hello()
    myobj.not_hello()
Beispiel #3
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()
Beispiel #4
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
Beispiel #5
0
def main():
    func1()
    func2()
    func3()
    my_obj = MyClass('a', 'b', 'c')
    my_obj.threefunc()
    my_obj.remove_threefunc()
Beispiel #6
0
def run():
    myclass = MyClass(3)
    conn = grpc.insecure_channel(_HOST + ':' + _PORT)
    client = data_pb2_grpc.DnetPredictStub(channel=conn)
    #print('Send: ' + _TEXT)
    print('Send, my_class.value = ', myclass.value)
    message = pickle.dumps(myclass)
    message = base64.b64encode(message)
    response = client.dnet_detect(data_pb2.Data(text=message))
    result = response.text
    result = base64.b64decode(response.text)
    result = pickle.loads(result)
    print('Received, my_class.value = ', result.value)
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"
Beispiel #8
0
def main():
    print 'Testing mytest functions and main class...'
    func1()
    func2()
    func3()
    myobj = MyClass(1, 2, 3)
    myobj.hello()
    myobj.not_hello()
Beispiel #9
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()
Beispiel #10
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
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()