puffotter.test package

Submodules

puffotter.test.TestCrypto module

class puffotter.test.TestCrypto.TestCrypto(methodName='runTest')

Bases: unittest.case.TestCase

Tests cryptographical functions

test_hashing()

Tests that passwords can be hashed successfully :return: None

test_hashing_strings()

Tests that password hashing and verifying works with string as well :return: None

test_salt()

Tests that password hashes are salted :return: None

test_verifying_with_invalid_hash()

Tests that attempting to verify a password with an incorrectly formatted hash will return False :return: None

puffotter.test.TestOs module

class puffotter.test.TestOs.TestCrypto(methodName='runTest')

Bases: unittest.case.TestCase

Tests os functions

test_listdir()

Tests the listdir function :return: None

puffotter.test.TestUnits module

class puffotter.test.TestUnits.TestUnits(methodName='runTest')

Bases: unittest.case.TestCase

Tests functions that handle units conversion

test_byte_conversion()

Tests that byte strings can be parsed correctly and displayed in a human-readable format :return: None

Module contents