コード例 #1
0
ファイル: test_hello.py プロジェクト: ys-office/B0842JDVBZ
 def test_func(self):
     from hello import func
     self.assertIsNone(func('こんにちは'))
コード例 #2
0
from hello import func, func_0

t = [1,4,2,5,3]
print(func(t))
print(func_0(t))
コード例 #3
0
ファイル: test_hello.py プロジェクト: JeeYz/Autumn_leaves
 def test_func(self):
     from hello import func
     self.assertIsNone(func('안녕하세요'))
コード例 #4
0
 def test_func(self):
     from hello import func
     self.assertIsNone(func("hello"))
コード例 #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
コード例 #6
0
def test_func():
    assert hello.func() == 20