Skip to content

Commit

Permalink
Refactor into latest design decision
Browse files Browse the repository at this point in the history
C is an implementation detail of the wrapper API, so we go with 'bindings'.
Also create/fix some namespaces.
  • Loading branch information
hynek committed Aug 8, 2013
1 parent 3562d05 commit 196515a
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from cryptography.c.api import api
from cryptography.bindings.openssl import api


__all__ = ["api"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@


class API(object):
"""OpenSSL API wrapper."""
"""
OpenSSL API wrapper.
"""


api = API()
Empty file added tests/bindings/__init__.py
Empty file.
19 changes: 19 additions & 0 deletions tests/bindings/test_openssl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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 cryptography.bindings.openssl import api


class TestOpenSSL(object):
def test_api_exists(self):
assert api
6 changes: 0 additions & 6 deletions tests/test_c.py

This file was deleted.

0 comments on commit 196515a

Please sign in to comment.