'Create a file in two hosts and verify that contents are different'

def testIsolation(self):

    fileName = 'b.txt'
    directory = self.directories[0]
    path = ((directory + '/') + fileName)
    contents = {'h1': '1', 'h2': '2'}
    for host in contents:
        value = contents[host]
        self.net.sendline(('%s    cat    %s' % (host, path)))
        self.net.expect('No    such    file')
        self.net.expect(self.prompt)
        self.net.sendline(('%s    echo    %s    >    %s' % (host, value, path)))
        self.net.expect(self.prompt)
    for host in contents:
        value = contents[host]
        self.net.sendline(('%s    cat    %s' % (host, path)))
        self.net.expect(value)
        self.net.expect(self.prompt)
        self.net.sendline(('%s    rm    %s' % (host, path)))
        self.net.expect(self.prompt)
