def testEmbeddedRelOverridesLinkRelWithSameHref(self):
        dept_role = self.doc.expand_curie('role:dept')

        filter_url = "http://localhost/departments/2"
        dept_2_link = [link for link in self.doc.links['role:dept']
                       if link.url() == filter_url][0]
        dept_2_embedded = [link for link in self.doc.embedded['role:dept']
                           if link.url() == filter_url][0]

        departments = self.doc.rels[dept_role]
        self.assertTrue(dept_2_embedded in departments)
        self.assertFalse(departments in dept_2_link)

        urls = [x.url() for x in departments]
        urls.sort()
        self.assertEqual(
            ["http://localhost/departments/%d" % x for x in [1, 2, 3]],
            urls)
dataset/ETHPy150Open wharris/dougrain/test/test_document.py/RelsTestMixin.testEmbeddedRelOverridesLinkRelWithSameHref/swapped operands of `in`