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

t = [1,4,2,5,3]
print(func(t))
print(func_0(t))
Ejemplo n.º 3
0
 def test_func(self):
     from hello import func
     self.assertIsNone(func('안녕하세요'))
Ejemplo n.º 4
0
 def test_func(self):
     from hello import func
     self.assertIsNone(func("hello"))
Ejemplo n.º 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
Ejemplo n.º 6
0
def test_func():
    assert hello.func() == 20