def METHOD_NAME(self):
    self.hs_group, _ = Group.objects.get_or_create(name='Hydroshare Author')
    # create a user
    self.user = hydroshare.create_account(
        'test_user@email.com',
        username='mytestuser',
        first_name='some_first_name',
        last_name='some_last_name',
        superuser=False,
        groups=[self.hs_group]
    )
    # note: creating a resource calls the hs_bagit.create_bag() api
    self.test_res = hydroshare.create_resource(
        'CompositeResource',
        self.user,
        'My Test Resource'
    )
    self.readme_md = "readme.md"
    self.readme_md_file = open(self.readme_md, 'w')
    self.readme_md_file.write("##This is a readme markdown file")
    self.readme_md_file.close()