title: How to write unit tests for csv file upload method in django
body: <p>I've written a method for csv file upload in django now I'm trying to write unit tests for that method.</p>
  
  <p>can we mock csv file using <code>from django.core.files.uploadedfile import SimpleUploadedFile</code>, or should I use something else?</p>
  
  <p>Can someone discuss that what approach(mocking, upload) should I follow for this problem?</p>