'Test Document Model'

def test_model_document(self):

    folder = Folder(name='test')
    folder.save()
    obj = Document(title='test', folder=folder)
    obj.save()
    self.assertEquals(folder, obj.folder)
    self.assertNotEquals(obj.id, None)
    obj.delete()
