@pytest.mark.django_db
def test_file_extension_instance():
 ext = FileExtension.objects.create(name='foo')
 assert (ext.name == 'foo')
 assert (str(ext) == 'foo')

@ pytest . mark . django_db def test_file_extension_instance ( ) : ext = FileExtension . objects . create ( name = 'foo' ) assert ( ext . name == 'foo' ) assert ( str ( ext ) == 'foo' )
tests the creation of a file extension .