예제 #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")