Example #1
0
 def test_func(self):
     from hello import func
     self.assertIsNone(func('こんにちは'))
Example #2
0
from hello import func, func_0

t = [1,4,2,5,3]
print(func(t))
print(func_0(t))
Example #3
0
 def test_func(self):
     from hello import func
     self.assertIsNone(func('안녕하세요'))
 def test_func(self):
     from hello import func
     self.assertIsNone(func("hello"))
Example #5
0
import math
import numpy as np

print(math.__name__)
# math

print(np.__name__)
# numpy

import hello

print(hello.__name__)
# hello

hello.func()
# Hello!
# __name__ is hello
Example #6
0
def test_func():
    assert hello.func() == 20