コード例 #1
0
ファイル: test_c_spec.py プロジェクト: AlloysMila/scipy
 def test_type_match_good(self):
     s = c_spec.dict_converter()
     assert_(s.type_match({}))
コード例 #2
0
ファイル: test_c_spec.py プロジェクト: landunin/meta-core
 def test_type_match_good(self):
     s = c_spec.dict_converter()
     assert_(s.type_match({}))
コード例 #3
0
ファイル: test_c_spec.py プロジェクト: AlloysMila/scipy
 def test_type_match_bad(self):
     s = c_spec.dict_converter()
     objs = [[],(),'',1,1.,1+1j]
     for i in objs:
         assert_( not s.type_match(i) )
コード例 #4
0
ファイル: test_c_spec.py プロジェクト: landunin/meta-core
 def test_type_match_bad(self):
     s = c_spec.dict_converter()
     objs = [[], (), '', 1, 1., 1 + 1j]
     for i in objs:
         assert_(not s.type_match(i))