def test_default(self): self.assertEqual(_secret_key('\x9e\x8f\x14'), b'\x9e\x8f\x14')
def test_default(self): self.assertEqual(_secret_key("\x9e\x8f\x14"), b"\x9e\x8f\x14")
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')
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")