'Test symlinks are correct when using multiopen with other objects.'

def testMultiOpenMixedObjects(self):

    (fd, _) = self.CreateAndOpenObjectAndSymlink()
    fd_urn1 = fd.urn
    fd_urn2 = rdfvalue.RDFURN('aff4:/C.0000000000000002')
    fd = aff4.FACTORY.Create(fd_urn2, aff4.AFF4Image, token=self.token)
    fd.Close()
    for fd in aff4.FACTORY.MultiOpen([self.symlink_source_urn, fd_urn2], token=self.token):
        if (fd.urn == fd_urn2):
            self.assertTrue(isinstance(fd, aff4.AFF4Image))
        elif (fd.urn == fd_urn1):
            self.assertTrue(isinstance(fd, AFF4SymlinkTestSubject))
            self.assertIsNotNone(fd.symlink_urn)
            self.assertEqual(fd.urn, self.symlink_target_urn)
            self.assertEqual(fd.symlink_urn, self.symlink_source_urn)
        else:
            raise ValueError(('Unexpected    URN:    %s' % fd.urn))
