コード例 #1
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)
コード例 #2
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)
コード例 #3
0
 def test_is_static_tuple(self):
     st = static_tuple.StaticTuple('foo')
     st2 = static_tuple.expect_static_tuple(st)
     self.assertIs(st, st2)
コード例 #4
0
ファイル: test__static_tuple.py プロジェクト: Distrotech/bzr
 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)
コード例 #5
0
ファイル: test__static_tuple.py プロジェクト: Distrotech/bzr
 def test_is_tuple(self):
     t = ('foo',)
     st = static_tuple.expect_static_tuple(t)
     self.assertIsInstance(st, static_tuple.StaticTuple)
     self.assertEqual(t, st)
コード例 #6
0
ファイル: test__static_tuple.py プロジェクト: Distrotech/bzr
 def test_is_static_tuple(self):
     st = static_tuple.StaticTuple('foo')
     st2 = static_tuple.expect_static_tuple(st)
     self.assertIs(st, st2)