示例#1
0
 def test_default(self):
     self.assertEqual(_secret_key('\x9e\x8f\x14'), b'\x9e\x8f\x14')
示例#2
0
 def test_default(self):
     self.assertEqual(_secret_key("\x9e\x8f\x14"), b"\x9e\x8f\x14")
示例#3
0
 def test_native(self):
     self.app.config['SECRET_KEY'] = '\x9e\x8f\x14'
     with self.app.test_request_context():
         self.assertEqual(_secret_key(), b'\x9e\x8f\x14')
示例#4
0
 def test_native(self):
     self.app.config["SECRET_KEY"] = "\x9e\x8f\x14"
     with self.app.test_request_context():
         self.assertEqual(_secret_key(), b"\x9e\x8f\x14")