def test_flagged_is_static_tuple(self): debug.debug_flags.add('static_tuple') st = static_tuple.StaticTuple('foo') st2 = static_tuple.expect_static_tuple(st) self.assertIs(st, st2)
def test_is_tuple(self): t = ('foo', ) st = static_tuple.expect_static_tuple(t) self.assertIsInstance(st, static_tuple.StaticTuple) self.assertEqual(t, st)
def test_is_static_tuple(self): st = static_tuple.StaticTuple('foo') st2 = static_tuple.expect_static_tuple(st) self.assertIs(st, st2)
def test_is_tuple(self): t = ('foo',) st = static_tuple.expect_static_tuple(t) self.assertIsInstance(st, static_tuple.StaticTuple) self.assertEqual(t, st)