'Tests the result if the unit does not exist.'

@patch('edxnotes.helpers.has_access', autospec=True)
@patch('edxnotes.helpers.modulestore', autospec=True)
def test_preprocess_collection_no_unit(self, mock_modulestore, mock_has_access):

    store = MagicMock()
    store.get_item().get_parent.return_value = None
    mock_modulestore.return_value = store
    mock_has_access.return_value = True
    initial_collection = [{u'quote': u'quote    text', u'text': u'text', u'usage_id': unicode(self.html_module_1.location), u'updated': datetime(2014, 11, 19, 8, 5, 16, 0).isoformat()}]
    self.assertItemsEqual([], helpers.preprocess_collection(self.user, self.course, initial_collection))
