def delete(self, username, realm=None):
        if realm is None:
            # This case makes the username optional, so
            # the full name can be passed in as realm.
            # Assume it's already encoded.
            name = username
        else:
            # Encode each component separately
            name = UrlEncoded(realm, encode_slash=True) + ":" + UrlEncoded(username, encode_slash=True)

        # Append the : expected at the end of the name
        if name[-1] is not ":":
            name = name + ":"
        return Collection.delete(self, name)
Test the creation of a simple XlsxWriter file with image(s).
dataset/ETHPy150Open hvandenb/splunk-elasticsearch/search-elasticsearch/bin/splunklib/client.py/StoragePasswords.delete--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/comparison/test_image_anchor07.py/TestCompareXLSXFiles.test_create_file