コード例 #1
0
 def test_set_default_file(self):
     prev = get_default_encoding_file()
     try:
         set_default_encoding_file('/foo.txt')
         self.assertEqual(get_default_encoding_file(), '/foo.txt')
     finally:
         set_default_encoding_file(prev)
コード例 #2
0
ファイル: test_encoding.py プロジェクト: juancferrer/kombu
 def test_set_default_file(self):
     prev = get_default_encoding_file()
     try:
         set_default_encoding_file('/foo.txt')
         self.assertEqual(get_default_encoding_file(), '/foo.txt')
     finally:
         set_default_encoding_file(prev)
コード例 #3
0
 def test_set_default_file(self):
     prev = get_default_encoding_file()
     try:
         set_default_encoding_file('/foo.txt')
         assert get_default_encoding_file() == '/foo.txt'
     finally:
         set_default_encoding_file(prev)
コード例 #4
0
ファイル: test_encoding.py プロジェクト: Erve1879/kombu
 def test_set_default_file(self):
     prev = get_default_encoding_file()
     try:
         set_default_encoding_file('/foo.txt')
         assert get_default_encoding_file() == '/foo.txt'
     finally:
         set_default_encoding_file(prev)