from test1 import add print(add(3, 2))
def test_add(self): self.assertEqual(add(1,2), 3)
from common import * from test1 import add test = "I like this" add(test) test2 = "I like this too" add(test2)
import test1 print(test1.add(5, 8)) print(test1.subtract(10, 5)) print(test1.division(2, 7)) print(test1.multiply(12, 6))
#import test1 from test1 import add, sub, BusinessCard print(__name__) result = add(3, 4) print(result) shkim = BusinessCard("sungho kim") shkim.print_info() result1 = sub(4, 5) print(result1) #result1 = sub(5,4) #print(result1)
import test1 print test1.add(5,5)