diff --git a/tests/api/bma/test_blockchain.py b/tests/api/bma/test_blockchain.py index 62bca0930c440ced658d6e9f35457c8acf0e5146..a48b7bac1d76fb8d4249ccfc884800fd4487159c 100644 --- a/tests/api/bma/test_blockchain.py +++ b/tests/api/bma/test_blockchain.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import unittest import jsonschema diff --git a/tests/api/bma/test_bma.py b/tests/api/bma/test_bma.py index 35955db866ca5acb85f7b673b3fc9decbf8b53f9..85e2bcbdb60059adff53f53a4180951eb873e6b1 100644 --- a/tests/api/bma/test_bma.py +++ b/tests/api/bma/test_bma.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import asyncio import unittest diff --git a/tests/api/bma/test_network.py b/tests/api/bma/test_network.py index 59d167c2e159c527d205f6e466766fc273cb79b4..f0247c17c45b0ec93e0fa9aeb70b8ca5faf11121 100644 --- a/tests/api/bma/test_network.py +++ b/tests/api/bma/test_network.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import unittest import jsonschema diff --git a/tests/api/bma/test_tx.py b/tests/api/bma/test_tx.py index b3966db1ec6d7fdb1e8e134f558dc80746f5d156..048ddd65bbc9dd5b24e509dc5ec2d478fb6066ff 100644 --- a/tests/api/bma/test_tx.py +++ b/tests/api/bma/test_tx.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import unittest import jsonschema diff --git a/tests/api/bma/test_wot.py b/tests/api/bma/test_wot.py index dc8478cfde22113e7685caa8c1af43eeef31dae6..b0bdda1898d8f470feb90d64d6b8d775ea2783f2 100644 --- a/tests/api/bma/test_wot.py +++ b/tests/api/bma/test_wot.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import json import unittest diff --git a/tests/api/bma/test_ws.py b/tests/api/bma/test_ws.py index d7b1f1df36dd0833f4ffa951b9e9f5a7900f9e1c..3826153aae7d91d859940be9974094489f9500a3 100644 --- a/tests/api/bma/test_ws.py +++ b/tests/api/bma/test_ws.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import unittest from jsonschema import SchemaError, ValidationError diff --git a/tests/api/webserver.py b/tests/api/webserver.py index e24df81f7dd8b5d1d4659f3c8a587efd3a006de5..d0adc5d9b8a7223f7593d629aaee2393851d2a93 100644 --- a/tests/api/webserver.py +++ b/tests/api/webserver.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import asyncio import socket import ssl diff --git a/tests/api/ws2p/test_ws2p.py b/tests/api/ws2p/test_ws2p.py index 975f2737f35981038bb0bdb8788b2964d9cff07f..bbfeaf48ed3e8e5264cc8248a1655b5af245f328 100644 --- a/tests/api/ws2p/test_ws2p.py +++ b/tests/api/ws2p/test_ws2p.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import json import unittest diff --git a/tests/documents/test_block.py b/tests/documents/test_block.py index bee6411df102791f694660f19ed6ff33366f7198..fe9975c00f557250df9f78710bba9312c71a1c31 100644 --- a/tests/documents/test_block.py +++ b/tests/documents/test_block.py @@ -1,8 +1,20 @@ """ -Created on 12 déc. 2014 +Copyright 2014-2020 Vincent Texier <vit@free.fr> -@author: inso +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. """ + import unittest from duniterpy.documents.block import Block diff --git a/tests/documents/test_certification.py b/tests/documents/test_certification.py index 12648e60e55cd8051ad34015a38ca3ae96246557..7b8019328c6d679f015a474199fbe9eaf209b486 100644 --- a/tests/documents/test_certification.py +++ b/tests/documents/test_certification.py @@ -1,7 +1,18 @@ """ -Created on 6 déc. 2014 +Copyright 2014-2020 Vincent Texier <vit@free.fr> -@author: inso +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. """ import unittest diff --git a/tests/documents/test_crc_pubkey.py b/tests/documents/test_crc_pubkey.py index 0e95d0b28e681be6b8276ca37353d21f47a266be..6228832f6ac52080869f227a835fa3225031788c 100644 --- a/tests/documents/test_crc_pubkey.py +++ b/tests/documents/test_crc_pubkey.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import unittest from duniterpy.documents.crc_pubkey import CRCPubkey diff --git a/tests/documents/test_membership.py b/tests/documents/test_membership.py index 03ccb3c32a28e5419766d6332ff02d8f328f9555..a00169a26172a366249eb9dab93e82509ebe7e84 100644 --- a/tests/documents/test_membership.py +++ b/tests/documents/test_membership.py @@ -1,8 +1,20 @@ """ -Created on 12 déc. 2014 +Copyright 2014-2020 Vincent Texier <vit@free.fr> -@author: inso +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. """ + import unittest from duniterpy.documents.membership import Membership diff --git a/tests/documents/test_peer.py b/tests/documents/test_peer.py index b8471d8a6d0bbef87085aa6ad18b8dc1d6c528ce..0b1ec1e994d06080067d41e016787ab53af461ca 100644 --- a/tests/documents/test_peer.py +++ b/tests/documents/test_peer.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import unittest from duniterpy.api.endpoint import BMAEndpoint, UnknownEndpoint, WS2PEndpoint diff --git a/tests/documents/test_transaction.py b/tests/documents/test_transaction.py index 609fd7898532ef4de284979dd1a8715981ff9348..ce9411ef7a8a79e21ff18f8562b2c8c4980b325a 100644 --- a/tests/documents/test_transaction.py +++ b/tests/documents/test_transaction.py @@ -1,7 +1,18 @@ """ -Created on 12 déc. 2014 +Copyright 2014-2020 Vincent Texier <vit@free.fr> -@author: inso +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. """ import unittest import pypeg2 diff --git a/tests/documents/test_ws2p_heads.py b/tests/documents/test_ws2p_heads.py index fec0c0047514671256f33f05ec71fbdb3bf6b2f5..d850f2dd0b45ae127f6ce29fc3e6e4bf3305e95e 100644 --- a/tests/documents/test_ws2p_heads.py +++ b/tests/documents/test_ws2p_heads.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import unittest from duniterpy.documents.ws2p.heads import HeadV0, HeadV1, HeadV2, BlockUID diff --git a/tests/grammars/test_output.py b/tests/grammars/test_output.py index dfc3570d7d3b5b4357e0936b97286ad7f43df364..5468224bccc111040d3c3e55bef2b2403bf7a7be 100644 --- a/tests/grammars/test_output.py +++ b/tests/grammars/test_output.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import unittest import pypeg2 diff --git a/tests/helpers/money.py b/tests/helpers/money.py index 66c8c90f1337ebe244ad90e647df19f1587e3e6f..72f6438030c72cc3314efd88deeb40de3f3e4af0 100644 --- a/tests/helpers/money.py +++ b/tests/helpers/money.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import unittest from operator import eq, ne, lt, ge from duniterpy.helpers.money import output_available diff --git a/tests/helpers/ws2p.py b/tests/helpers/ws2p.py index 8a0c888caa61bc50876ac0a32e1770d098afbd24..e5c54cc08407244629e9e8199e2690abb341d942 100644 --- a/tests/helpers/ws2p.py +++ b/tests/helpers/ws2p.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import pytest from duniterpy.helpers.ws2p import generate_ws2p_endpoint diff --git a/tests/key/test_ascii_armor.py b/tests/key/test_ascii_armor.py index 1d0589f7bd9426227646bd7ac49be3c87a277efd..76a6c81406ce231ea8314b9ce1b9bb6084d2119b 100644 --- a/tests/key/test_ascii_armor.py +++ b/tests/key/test_ascii_armor.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + from duniterpy.key import AsciiArmor, SigningKey from duniterpy.key.ascii_armor import ( BEGIN_MESSAGE_HEADER, diff --git a/tests/key/test_encryption_key.py b/tests/key/test_encryption_key.py index 24941b2e18c11f61467d061fd45b465b88f902d4..94efb81c84ea2536301cdb02e155f1ea0d2487be 100644 --- a/tests/key/test_encryption_key.py +++ b/tests/key/test_encryption_key.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + from duniterpy.key import SecretKey import unittest diff --git a/tests/key/test_public_key.py b/tests/key/test_public_key.py index 39fab7c5ef2f6a3a2517224ff6e38891b966193a..1fc4770fbfaefb948e322fde212314d8d6f60878 100644 --- a/tests/key/test_public_key.py +++ b/tests/key/test_public_key.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + from duniterpy.key import SigningKey, PublicKey from duniterpy.key.scrypt_params import ScryptParams import unittest diff --git a/tests/key/test_signing_key.py b/tests/key/test_signing_key.py index 2d8784e2a7adee875374f31dde60a1fdf1e6689c..2ad99072e4ea86f375aa47485e8ba05c0a2d8b62 100644 --- a/tests/key/test_signing_key.py +++ b/tests/key/test_signing_key.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + import os from duniterpy.key import VerifyingKey, SigningKey, PublicKey diff --git a/tests/key/test_verifying_key.py b/tests/key/test_verifying_key.py index 2e8835bca57b8e321061b46cbfefa41ad9ae6464..28caa22ff0dd55dba600437c9af0b443b2b724da 100644 --- a/tests/key/test_verifying_key.py +++ b/tests/key/test_verifying_key.py @@ -1,3 +1,20 @@ +""" +Copyright 2014-2020 Vincent Texier <vit@free.fr> + +DuniterPy is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DuniterPy is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +""" + from duniterpy.key import VerifyingKey, SigningKey from duniterpy.key.scrypt_params import ScryptParams from duniterpy.documents.peer import Peer