def testNotATupleIncorrect(self): with self.assertRaises(TypeError): utils.AssertTupleType([u"foo", u"bar", u"baz"], unicode)
def testNonHomogeneousBytesListIncorrect(self): with self.assertRaises(TypeError): utils.AssertTupleType((b"foo", b"bar", u"baz"), bytes)
def testIntTupleCorrect(self): del self # Unused. utils.AssertTupleType((4, 8, 15, 16, 23, 42), int)