# Path: models/access_key.py
# class AccessKey(ndb.Model):
#     """Models an instance of an API key."""
#     access_key = ndb.StringProperty()
#     description = ndb.TextProperty()
# 
#     @staticmethod
#     def generate_uuid():
#         return uuid4().hex
# 
#     @classmethod
#     def create(cls, description):
#         new_key = cls()
#         new_key.access_key = cls.generate_uuid()
#         new_key.description = description
#         new_key.put()
# 
#         return new_key


import unittest
from models.access_key import AccessKey
# -*- coding: utf-8 -*-



class AccessKeyTest(unittest.TestCase):
    # enable the datastore stub
    nosegae_datastore_v3 = True

    def test_create(self):

# Path: models/access_key.py
# class AccessKey(ndb.Model):
#     """Models an instance of an API key."""
#     access_key = ndb.StringProperty()
#     description = ndb.TextProperty()
# 
#     @staticmethod
#     def generate_uuid():
#         return uuid4().hex
# 
#     @classmethod
#     def create(cls, description):
#         new_key = cls()
#         new_key.access_key = cls.generate_uuid()
#         new_key.description = description
#         new_key.put()
# 
#         return new_key


# Path: tests/models/access_key_test.py
import unittest
from models.access_key import AccessKey

# -*- coding: utf-8 -*-



class AccessKeyTest(unittest.TestCase):
    # enable the datastore stub
    nosegae_datastore_v3 = True

    def test_create(self):

        key = AccessKey.create('description')