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)
Exemple #4
0
 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)
Exemple #5
0
 def test_is_tuple(self):
     t = ('foo',)
     st = static_tuple.expect_static_tuple(t)
     self.assertIsInstance(st, static_tuple.StaticTuple)
     self.assertEqual(t, st)
Exemple #6
0
 def test_is_static_tuple(self):
     st = static_tuple.StaticTuple('foo')
     st2 = static_tuple.expect_static_tuple(st)
     self.assertIs(st, st2)