MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / assertIsValidKeyValue

Method assertIsValidKeyValue

app/secret_key_test.py:12–14  ·  view source on GitHub ↗
(self, secret_key_value)

Source from the content-addressed store, hash-verified

10class SecretKeyTest(unittest.TestCase):
11
12 def assertIsValidKeyValue(self, secret_key_value): # pylint: disable=invalid-name
13 self.assertIs(bytes, type(secret_key_value))
14 self.assertEqual(32, len(secret_key_value))
15
16 def test_get_or_create_will_get_when_valid_file_exists(self):
17 with tempfile.NamedTemporaryFile() as mock_secret_key_file:

Calls

no outgoing calls

Tested by

no test coverage detected