1686
1687
def test_assert_isinstance(self):
1687
1688
self.assertIsInstance(2, int)
1688
1689
self.assertIsInstance(u'', basestring)
1689
self.assertRaises(AssertionError, self.assertIsInstance, None, int)
1690
e = self.assertRaises(AssertionError, self.assertIsInstance, None, int)
1690
1693
self.assertRaises(AssertionError, self.assertIsInstance, 23.3, int)
1695
self.assertIsInstance, None, int, "it's just not")
1692
1700
def test_assertEndsWith(self):
1693
1701
self.assertEndsWith('foo', 'oo')