'Tests the creation of a document with no relations'

def test_create_document_with_no_rel(self):

    f = SimpleUploadedFile('test_img_file.gif', self.imgfile.read(), 'image/gif')
    superuser = get_user_model().objects.get(pk=2)
    c = Document.objects.create(doc_file=f, owner=superuser, title='theimg')
    c.set_default_permissions()
    self.assertEquals(Document.objects.get(pk=c.id).title, 'theimg')
