1912
1912
self.assertIsInstance(2, int)
1913
1913
self.assertIsInstance(u'', basestring)
1914
1914
e = self.assertRaises(AssertionError, self.assertIsInstance, None, int)
1916
1916
"None is an instance of <type 'NoneType'> rather than <type 'int'>")
1917
1917
self.assertRaises(AssertionError, self.assertIsInstance, 23.3, int)
1918
1918
e = self.assertRaises(AssertionError,
1919
1919
self.assertIsInstance, None, int, "it's just not")
1921
1921
"None is an instance of <type 'NoneType'> rather than <type 'int'>"