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