def testStrictContains(self): """Test ListContains with strict=True.""" for x in self.STRICTLY_TRUE_LISTS: self.assertTrue(partial_mock.ListContains(x, self.L, strict=True)) for x in self.LOOSELY_TRUE_LISTS + self.FALSE_LISTS: self.assertFalse(partial_mock.ListContains(x, self.L, strict=True))
def testUnicode(self): """Test ListContains with unicode and non-unicode strings.""" self.assertTrue(partial_mock.ListContains(['foo'], [u'foo']))