Example #1
0
 def test_none(self):
     self.assertFalse(iterutils.ismapping(None))
Example #2
0
 def test_dict(self):
     self.assertTrue(iterutils.ismapping({}))
Example #3
0
 def test_string(self):
     self.assertFalse(iterutils.ismapping('foo'))
Example #4
0
 def test_list(self):
     self.assertFalse(iterutils.ismapping([]))