def METHOD_NAME(self):
    """ files with recognized extensions are classified properly """
    # resource should not have any files at this point
    self.assertEqual(self.res.files.all().count(), 0,
                     msg="resource file count didn't match")
    # add one file to the resource
    test_file_handle = open(self.filenames[0], 'r')
    hydroshare.add_resource_files(self.res.short_id, test_file_handle)
    self.assertEqual(self.res.files.all().count(), 1,
                     msg="resource file count didn't match")
    types = get_content_types(self.res)
    self.assertTrue(is_equal_to_as_set(types[0], ['Resource', self.content_types[0]]))
    self.assertTrue(is_equal_to_as_set(types[1], []))  # no left-over extensions
    # delete resources to clean up
    hydroshare.delete_resource(self.res.short_id)