fat_ffipd.test.db package

Submodules

fat_ffipd.test.db.TestApiKey module

class fat_ffipd.test.db.TestApiKey.TestApiKey(methodName='runTest')

Bases: fat_ffipd.test.TestFramework._TestFramework

Class that tests the ApiKey database model

test_equality()

Tests checking equality for model objects :return: None

test_expiration()

Tests if the expiration of API keys works correctly :return: None

test_hashing()

Tests using the model objects as keys in a dictionary :return: None

test_json_representation()

Tests the JSON representation of the model :return: None

test_repr()

Tests the __repr__ method of the model class :return: None

test_string_representation()

Tests the string representation of the model :return: None

test_verifying_key()

Tests verifying an api key :return: None

fat_ffipd.test.db.TestUser module

class fat_ffipd.test.db.TestUser.TestUser(methodName='runTest')

Bases: fat_ffipd.test.TestFramework._TestFramework

Class that tests the User database model

test_equality()

Tests checking equality for model objects :return: None

test_flask_properties()

Tests if the flask_login properties work as expected :return: None

test_hashing()

Tests using the model objects as keys in a dictionary :return: None

test_json_representation()

Tests the JSON representation of the model :return: None

test_repr()

Tests the __repr__ method of the model class :return: None

test_string_representation()

Tests the string representation of the model :return: None

test_verifying_password()

Tests verifying the password of a user :return: None

Module contents