import unittest

from cybox.objects.file_object import File
from cybox.test import round_trip
from cybox.test.objects import ObjectTestCase


class TestFile(unittest.TestCase, ObjectTestCase):
    object_type = "FileObjectType"
    klass = File


    def test_filepath_is_none(self):
        # This would throw an exception at one point. Should be fixed now.
        a = File.from_dict({'file_name': 'abcd.dll'})


    def test_round_trip(self):
        pass


if __name__ == "__main__":
    unittest.main()

Add a test related to creating File objects
Add a test related to creating File objects

This tests a bug which was present as of
7666b90ed657fa550283bfceefb938f27f7372b5 but was fixed in
0ba7cdb9bac25bac864d87b52da1ccb6b1e94d9e.
