def test_given_private_key_in_hexadecimal_uncompressed_format_when_initializing_private_key_then_other_formats_are_calculated_correctly(
         self):
     private_key = PrivateKey(private_key=private_key_hex_uncompressed)
     assert private_key.decimal == private_key_decimal
     assert private_key.wif == private_key_wif_uncompressed
     assert private_key.wifc == private_key_wif_compressed
     assert private_key.hex == private_key_hex_uncompressed
     assert private_key.hexc == private_key_hex_compressed
 def test_given_private_key_in_hexadecimal_compressed_format_when_initializing_private_key_then_private_key_object_is_created(
         self):
     private_key = PrivateKey(private_key=private_key_hex_compressed)
     assert isinstance(private_key, PrivateKey)
 def test_given_invalid_private_key_in_wif_compressed_format_when_initializing_private_key_then_exception_is_raised(
         self):
     with pytest.raises(Exception):
         PrivateKey(private_key='foobar')
 def test_given_no_parameters_when_initializing_private_key_then_exception_is_raised(
         self):
     with pytest.raises(Exception):
         PrivateKey()