Skip to content

Commit

Permalink
Refactor more use of assert in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterKale committed Jan 11, 2024
1 parent f5c420c commit c471b0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_generate_challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class TestWebAuthnGenerateChallenge(TestCase):
def test_generates_byte_sequence(self) -> None:
output = generate_challenge()

assert type(output) == bytes
assert len(output) == 64
self.assertEqual(type(output), bytes)
self.assertEqual(len(output), 64)

def test_generates_unique_value_each_time(self) -> None:
output1 = generate_challenge()
output2 = generate_challenge()

assert output1 != output2
self.assertNotEqual(output1, output2)

0 comments on commit c471b0f

Please sign in to comment.