From 08f6e17e915e50b4a17ffcac1c0948ebfade9e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 30 Apr 2018 13:48:54 +0300 Subject: [PATCH] Tests check for correctly encoded API key. --- hc/accounts/tests/test_profile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hc/accounts/tests/test_profile.py b/hc/accounts/tests/test_profile.py index 30f9d2fd..f0a5f3e8 100644 --- a/hc/accounts/tests/test_profile.py +++ b/hc/accounts/tests/test_profile.py @@ -37,6 +37,7 @@ class ProfileTestCase(BaseTestCase): self.profile.refresh_from_db() api_key = self.profile.api_key self.assertTrue(len(api_key) > 10) + self.assertFalse("b'" in api_key) def test_it_revokes_api_key(self): self.client.login(username="alice@example.org", password="password")