summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoy Kokkelkoren <roy.kokkelkoren@gmail.com>2015-10-25 16:12:11 +0100
committerRoy Kokkelkoren <roy.kokkelkoren@gmail.com>2015-10-25 16:12:11 +0100
commit0659aacebbb17df7b072cc7bde6cd6ca91d3e000 (patch)
tree83c481164a03cd5e2cf2f39e5c19fd897ebc182d /tests
parent6b4413a8619b2dc4d0f6e2db957d929c9d2120e2 (diff)
downloadrsa-git-0659aacebbb17df7b072cc7bde6cd6ca91d3e000.tar.gz
Added per-file licenses
Diffstat (limited to 'tests')
-rw-r--r--tests/constants.py14
-rw-r--r--tests/py2kconstants.py14
-rw-r--r--tests/py3kconstants.py14
-rw-r--r--tests/test_bigfile.py15
-rw-r--r--tests/test_common.py14
-rw-r--r--tests/test_compat.py14
-rw-r--r--tests/test_integers.py15
-rw-r--r--tests/test_load_save_keys.py15
-rw-r--r--tests/test_pem.py15
-rw-r--r--tests/test_pkcs1.py15
-rw-r--r--tests/test_strings.py15
-rw-r--r--tests/test_transform.py15
-rw-r--r--tests/test_varblock.py15
13 files changed, 188 insertions, 2 deletions
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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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 <sybren@stuvel.eu>
+#
+# 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.'''