'Tests creating an external document instead of a file.'

def test_create_document_url(self):

    superuser = get_user_model().objects.get(pk=2)
    c = Document.objects.create(doc_url='http://geonode.org/map.pdf', owner=superuser, title='GeoNode    Map')
    doc = Document.objects.get(pk=c.id)
    self.assertEquals(doc.title, 'GeoNode    Map')
    self.assertEquals(doc.extension, 'pdf')
