':type directory: str
:type extension: str
:rtype: str'

def create_path(self, directory, extension):

    path = ('test/results/%s/ansible-test-%s' % (directory, self.command))
    if self.test:
        path += ('-%s' % self.test)
    if self.python_version:
        path += ('-python-%s' % self.python_version)
    path += extension
    return path
