Results of 1 - 4 of about 4 for TestStringMethods (0.024 sec.)
- unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 11724
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー
...ols suffice to meet the needs of most users. 以下は、三つの文字列メソッドをテストするスクリプトです: import unittest class TestStringMethods ( unittest . TestCase ): def test_upper ( self ): self . assertEqual ( 'foo' . upper (), 'FOO' ) def test_isupper ( self )...プションをテストスクリプトに渡すことで unittest.main() はより冗長になり、以下のような出力をします: test_isupper ( __main__ . TestStringMethods . test_isupper ) ... ok test_split ( __main__ . TestStringMethods . test_split ) ... ok test_upper ( __main__ . TestString...開始 discover パッケージ testing module split Added ランナー スクリプト isupper パターン unit テストケース TestCase cases TestStringMethods upper 目次 unittest --- ユニットテストフレームワーク 基本的な例 コマンドラインインターフェイス コマンドラインオプション テ... - https://man.mtool.work/python/3.14/library/unittest.html
- unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 10300
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー
...ols suffice to meet the needs of most users. 以下は、三つの文字列メソッドをテストするスクリプトです: import unittest class TestStringMethods ( unittest . TestCase ): def test_upper ( self ): self . assertEqual ( 'foo' . upper (), 'FOO' ) def test_isupper ( self )...プションをテストスクリプトに渡すことで unittest.main() はより冗長になり、以下のような出力をします: test_isupper ( __main__ . TestStringMethods . test_isupper ) ... ok test_split ( __main__ . TestStringMethods . test_split ) ... ok test_upper ( __main__ . TestString... - https://man.mtool.work/python/3.14/library/unittest.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 7452
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...1 , 2 ), ANY ] True ANY is not limited to comparisons with call objects and so can also be used in test assertions: class TestStringMethods ( unittest . TestCase ): def test_split ( self ): s = 'hello world' self . assertEqual ( s . split (), [ 'hello' , ANY ])... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 7452
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...1 , 2 ), ANY ] True ANY is not limited to comparisons with call objects and so can also be used in test assertions: class TestStringMethods ( unittest . TestCase ): def test_split ( self ): s = 'hello world' self . assertEqual ( s . split (), [ 'hello' , ANY ])... - https://man.mtool.work/python/3.14/library/unittest.mock.html
PREV
1
NEXT