aboutsummaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-01-05 19:20:18 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-01-16 15:32:09 +0100
commit707f5f702839d739a30a36b91a660338a5fd95a4 (patch)
tree6d067fe6d62a84f6cd2bbe441a802ca4ab5ce0d7 /unittest
parent50e586eade957f93e9f6c63bafb835de3d9c3c04 (diff)
downloadlibnitrokey-707f5f702839d739a30a36b91a660338a5fd95a4.tar.gz
libnitrokey-707f5f702839d739a30a36b91a660338a5fd95a4.tar.bz2
Add license / copyright info to Python files with proper comment
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r--unittest/conftest.py21
-rw-r--r--unittest/constants.py21
-rw-r--r--unittest/misc.py21
-rw-r--r--unittest/test_library.py21
-rw-r--r--unittest/test_pro.py21
-rw-r--r--unittest/test_storage.py21
6 files changed, 126 insertions, 0 deletions
diff --git a/unittest/conftest.py b/unittest/conftest.py
index a53b005..8f386e0 100644
--- a/unittest/conftest.py
+++ b/unittest/conftest.py
@@ -1,3 +1,24 @@
+"""
+Copyright (c) 2015-2018 Nitrokey UG
+
+This file is part of libnitrokey.
+
+libnitrokey is free software: you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+any later version.
+
+libnitrokey 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 Lesser General Public License
+along with libnitrokey. If not, see <http://www.gnu.org/licenses/>.
+
+SPDX-License-Identifier: LGPL-3.0
+"""
+
import pytest
from misc import ffi
diff --git a/unittest/constants.py b/unittest/constants.py
index f3e876a..3fb444a 100644
--- a/unittest/constants.py
+++ b/unittest/constants.py
@@ -1,3 +1,24 @@
+"""
+Copyright (c) 2015-2018 Nitrokey UG
+
+This file is part of libnitrokey.
+
+libnitrokey is free software: you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+any later version.
+
+libnitrokey 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 Lesser General Public License
+along with libnitrokey. If not, see <http://www.gnu.org/licenses/>.
+
+SPDX-License-Identifier: LGPL-3.0
+"""
+
from misc import to_hex
def bb(x):
diff --git a/unittest/misc.py b/unittest/misc.py
index f4d7731..a41f2b2 100644
--- a/unittest/misc.py
+++ b/unittest/misc.py
@@ -1,3 +1,24 @@
+"""
+Copyright (c) 2015-2018 Nitrokey UG
+
+This file is part of libnitrokey.
+
+libnitrokey is free software: you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+any later version.
+
+libnitrokey 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 Lesser General Public License
+along with libnitrokey. If not, see <http://www.gnu.org/licenses/>.
+
+SPDX-License-Identifier: LGPL-3.0
+"""
+
import cffi
ffi = cffi.FFI()
diff --git a/unittest/test_library.py b/unittest/test_library.py
index 7012619..f6cf366 100644
--- a/unittest/test_library.py
+++ b/unittest/test_library.py
@@ -1,3 +1,24 @@
+"""
+Copyright (c) 2015-2018 Nitrokey UG
+
+This file is part of libnitrokey.
+
+libnitrokey is free software: you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+any later version.
+
+libnitrokey 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 Lesser General Public License
+along with libnitrokey. If not, see <http://www.gnu.org/licenses/>.
+
+SPDX-License-Identifier: LGPL-3.0
+"""
+
import pytest
from misc import ffi, gs, to_hex, is_pro_rtm_07, is_long_OTP_secret_handled
diff --git a/unittest/test_pro.py b/unittest/test_pro.py
index 830946d..12a34e9 100644
--- a/unittest/test_pro.py
+++ b/unittest/test_pro.py
@@ -1,3 +1,24 @@
+"""
+Copyright (c) 2015-2018 Nitrokey UG
+
+This file is part of libnitrokey.
+
+libnitrokey is free software: you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+any later version.
+
+libnitrokey 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 Lesser General Public License
+along with libnitrokey. If not, see <http://www.gnu.org/licenses/>.
+
+SPDX-License-Identifier: LGPL-3.0
+"""
+
import pytest
from conftest import skip_if_device_version_lower_than
diff --git a/unittest/test_storage.py b/unittest/test_storage.py
index 2466779..0f3e04e 100644
--- a/unittest/test_storage.py
+++ b/unittest/test_storage.py
@@ -1,3 +1,24 @@
+"""
+Copyright (c) 2015-2018 Nitrokey UG
+
+This file is part of libnitrokey.
+
+libnitrokey is free software: you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+any later version.
+
+libnitrokey 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 Lesser General Public License
+along with libnitrokey. If not, see <http://www.gnu.org/licenses/>.
+
+SPDX-License-Identifier: LGPL-3.0
+"""
+
import pprint
import pytest