# Path: groupy/api/attachments.py
# class AttachmentMeta(type):
# class Attachment(base.Resource, metaclass=AttachmentMeta):
# class Location(Attachment):
# class Split(Attachment):
# class Emoji(Attachment):
# class Mentions(Attachment):
# class Image(Attachment):
# class LinkedImage(Image):
# class Images(base.Manager):
#     def __init__(cls, name, bases, attrs):
#     def __init__(self, type, **data):
#     def to_json(self):
#     def from_data(cls, type, **data):
#     def from_bulk_data(cls, attachments):
#     def __init__(self, lat, lng, name, foursqure_venue_id=None):
#     def __init__(self, token):
#     def __init__(self, placeholder, charmap):
#     def __init__(self, loci=None, user_ids=None):
#     def __init__(self, url, source_url=None, file_id=None):
#     def from_file(self, fp):
#     def upload(self, fp):
#     def download(self, image, url_field='url', suffix=None):
#     def download_preview(self, image, url_field='url'):
#     def download_large(self, image, url_field='url'):
#     def download_avatar(self, image, url_field='url'):


import unittest
from groupy.api import attachments



class TestAttachmentsFromData(unittest.TestCase):
    def test_known_attachment_type(self):
        data = {'type': 'split', 'token': 'foo'}

# Path: groupy/api/attachments.py
# class AttachmentMeta(type):
# class Attachment(base.Resource, metaclass=AttachmentMeta):
# class Location(Attachment):
# class Split(Attachment):
# class Emoji(Attachment):
# class Mentions(Attachment):
# class Image(Attachment):
# class LinkedImage(Image):
# class Images(base.Manager):
#     def __init__(cls, name, bases, attrs):
#     def __init__(self, type, **data):
#     def to_json(self):
#     def from_data(cls, type, **data):
#     def from_bulk_data(cls, attachments):
#     def __init__(self, lat, lng, name, foursqure_venue_id=None):
#     def __init__(self, token):
#     def __init__(self, placeholder, charmap):
#     def __init__(self, loci=None, user_ids=None):
#     def __init__(self, url, source_url=None, file_id=None):
#     def from_file(self, fp):
#     def upload(self, fp):
#     def download(self, image, url_field='url', suffix=None):
#     def download_preview(self, image, url_field='url'):
#     def download_large(self, image, url_field='url'):
#     def download_avatar(self, image, url_field='url'):


# Path: tests/api/test_attachments.py
import unittest
from groupy.api import attachments




class TestAttachmentsFromData(unittest.TestCase):
    def test_known_attachment_type(self):
        data = {'type': 'split', 'token': 'foo'}

        attachment = attachments.Attachment.from_data(**data)