# Path: egasub/ega/entities/file.py
# class File(object):
#     def __init__(self,file_id,file_name,checksum,unencrypted_checksum,checksum_method):
#         self.file_id = file_id
#         self.file_name = file_name
#         self.checksum = checksum
#         self.unencrypted_checksum = unencrypted_checksum
#         self.checksum_method = checksum_method
# 
#     def to_dict(self):
#         return {
#             'fileId': self.file_id,
#             'fileName': self.file_name,
#             'checksum': self.checksum,
#             'unencryptedChecksum' : self.unencrypted_checksum,
#             'checksumMethod' : self.checksum_method
#         }
# 
#     def to_xml(self):
#         pass
# 
#     @staticmethod
#     def from_dict(file_dict):
#         return File(
#                 None,
#                 file_dict.get('fileName'),
#                 file_dict.get('checksum'),
#                 file_dict.get('unencryptedChecksum'),
#                 file_dict.get('checksumMethod')
#             )


from egasub.ega.entities.file import File

file_ = File(32,'file name','CheckSum','UnencryptedChecksum','md5')

def test_file_id():
    assert 32 == file_.file_id

def test_file_name():
    assert 'file name' == file_.file_name

def test_checksum():
    assert 'CheckSum' == file_.checksum

def test_unencrypted_checksum():
    assert 'UnencryptedChecksum' == file_.unencrypted_checksum

def test_checksum_method():
    assert 'md5'.lower() == file_.checksum_method.lower()

def test_to_dict():
    assert cmp({
                    'fileId':32,
                    'fileName':'file name',

# Path: egasub/ega/entities/file.py
# class File(object):
#     def __init__(self,file_id,file_name,checksum,unencrypted_checksum,checksum_method):
#         self.file_id = file_id
#         self.file_name = file_name
#         self.checksum = checksum
#         self.unencrypted_checksum = unencrypted_checksum
#         self.checksum_method = checksum_method
# 
#     def to_dict(self):
#         return {
#             'fileId': self.file_id,
#             'fileName': self.file_name,
#             'checksum': self.checksum,
#             'unencryptedChecksum' : self.unencrypted_checksum,
#             'checksumMethod' : self.checksum_method
#         }
# 
#     def to_xml(self):
#         pass
# 
#     @staticmethod
#     def from_dict(file_dict):
#         return File(
#                 None,
#                 file_dict.get('fileName'),
#                 file_dict.get('checksum'),
#                 file_dict.get('unencryptedChecksum'),
#                 file_dict.get('checksumMethod')
#             )


# Path: tests/test_file.py
from egasub.ega.entities.file import File


file_ = File(32,'file name','CheckSum','UnencryptedChecksum','md5')

def test_file_id():
    assert 32 == file_.file_id

def test_file_name():
    assert 'file name' == file_.file_name

def test_checksum():
    assert 'CheckSum' == file_.checksum

def test_unencrypted_checksum():
    assert 'UnencryptedChecksum' == file_.unencrypted_checksum

def test_checksum_method():
    assert 'md5'.lower() == file_.checksum_method.lower()

def test_to_dict():
    assert cmp({
                    'fileId':32,
                    'fileName':'file name',

                    'checksum':'CheckSum',