Refactors tests folder to separate different modules

Each module has a different folder and they do not share methods now. At some point they should be split in different repos
This commit is contained in:
Sergi Delgado Segura
2019-12-16 11:26:51 +01:00
parent bc250bd814
commit 61663e89d7
26 changed files with 29 additions and 15 deletions

View File

@@ -0,0 +1,19 @@
from pisa import c_logger
from pisa.encrypted_blob import EncryptedBlob
from test.pisa.unit.conftest import get_random_value_hex
c_logger.disabled = True
def test_init_encrypted_blob():
# No much to test here, basically that the object is properly created
data = get_random_value_hex(64)
assert EncryptedBlob(data).data == data
def test_equal():
data = get_random_value_hex(64)
e_blob1 = EncryptedBlob(data)
e_blob2 = EncryptedBlob(data)
assert e_blob1 == e_blob2 and id(e_blob1) != id(e_blob2)