From 827d7fb95bdb0293435d6ca18614e0c3f56f5135 Mon Sep 17 00:00:00 2001 From: Roy Kokkelkoren Date: Sun, 25 Oct 2015 16:12:11 +0100 Subject: Added per-file licenses --- tests/constants.py | 14 ++++++++++++++ tests/py2kconstants.py | 14 ++++++++++++++ tests/py3kconstants.py | 14 ++++++++++++++ tests/test_bigfile.py | 15 +++++++++++++++ tests/test_common.py | 14 ++++++++++++++ tests/test_compat.py | 14 ++++++++++++++ tests/test_integers.py | 15 +++++++++++++++ tests/test_load_save_keys.py | 15 +++++++++++++++ tests/test_pem.py | 15 ++++++++++++++- tests/test_pkcs1.py | 15 +++++++++++++++ tests/test_strings.py | 15 +++++++++++++++ tests/test_transform.py | 15 ++++++++++++++- tests/test_varblock.py | 15 +++++++++++++++ 13 files changed, 188 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/constants.py b/tests/constants.py index 6a0d081..5eab9f2 100644 --- a/tests/constants.py +++ b/tests/constants.py @@ -1,4 +1,18 @@ # -*- coding: utf-8 -*- +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from rsa._compat import have_python3 diff --git a/tests/py2kconstants.py b/tests/py2kconstants.py index 5f695dd..0b53a78 100644 --- a/tests/py2kconstants.py +++ b/tests/py2kconstants.py @@ -1,3 +1,17 @@ # -*- coding: utf-8 -*- +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. unicode_string = u"Euro=\u20ac ABCDEFGHIJKLMNOPQRSTUVWXYZ" diff --git a/tests/py3kconstants.py b/tests/py3kconstants.py index 83b6712..c12a39b 100644 --- a/tests/py3kconstants.py +++ b/tests/py3kconstants.py @@ -1,3 +1,17 @@ # -*- coding: utf-8 -*- +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. unicode_string = "Euro=\u20ac ABCDEFGHIJKLMNOPQRSTUVWXYZ" diff --git a/tests/test_bigfile.py b/tests/test_bigfile.py index 86bcbba..03863c1 100644 --- a/tests/test_bigfile.py +++ b/tests/test_bigfile.py @@ -1,3 +1,18 @@ +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + '''Tests block operations.''' from rsa._compat import b diff --git a/tests/test_common.py b/tests/test_common.py index d105dc0..eba5d27 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -1,5 +1,19 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import unittest2 import struct diff --git a/tests/test_compat.py b/tests/test_compat.py index 3652c82..1788ff0 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -1,4 +1,18 @@ # -*- coding: utf-8 -*- +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import unittest2 import struct diff --git a/tests/test_integers.py b/tests/test_integers.py index 0a712aa..58af48c 100644 --- a/tests/test_integers.py +++ b/tests/test_integers.py @@ -1,3 +1,18 @@ +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + '''Tests integer operations.''' import unittest2 diff --git a/tests/test_load_save_keys.py b/tests/test_load_save_keys.py index fc1a1aa..0d132b9 100644 --- a/tests/test_load_save_keys.py +++ b/tests/test_load_save_keys.py @@ -1,3 +1,18 @@ +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + '''Unittest for saving and loading keys.''' import base64 diff --git a/tests/test_pem.py b/tests/test_pem.py index 867f678..d1dcf3a 100644 --- a/tests/test_pem.py +++ b/tests/test_pem.py @@ -1,6 +1,19 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import unittest2 from rsa._compat import b diff --git a/tests/test_pkcs1.py b/tests/test_pkcs1.py index d5882df..4be2dd8 100644 --- a/tests/test_pkcs1.py +++ b/tests/test_pkcs1.py @@ -1,3 +1,18 @@ +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + '''Tests string operations.''' import struct diff --git a/tests/test_strings.py b/tests/test_strings.py index 4af0629..e307efb 100644 --- a/tests/test_strings.py +++ b/tests/test_strings.py @@ -1,3 +1,18 @@ +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + '''Tests string operations.''' from __future__ import absolute_import diff --git a/tests/test_transform.py b/tests/test_transform.py index ffd9ec8..ed3e38b 100644 --- a/tests/test_transform.py +++ b/tests/test_transform.py @@ -1,5 +1,18 @@ # -*- coding: utf-8 -*- - +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import unittest2 from rsa._compat import b diff --git a/tests/test_varblock.py b/tests/test_varblock.py index 24ea50f..6dad5ab 100644 --- a/tests/test_varblock.py +++ b/tests/test_varblock.py @@ -1,3 +1,18 @@ +# +# Copyright 2011 Sybren A. Stüvel +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + '''Tests varblock operations.''' -- cgit v1.2.1