Exemplo n.º 1
0
 def test_type_match_good(self):
     s = c_spec.dict_converter()
     assert_(s.type_match({}))
Exemplo n.º 2
0
 def test_type_match_good(self):
     s = c_spec.dict_converter()
     assert_(s.type_match({}))
Exemplo n.º 3
0
 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) )
Exemplo n.º 4
0
 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))