def testRememberNamespace(self):
        g = rdflib.ConjunctiveGraph()
        g.add(TRIPLE + (rdflib.URIRef("http://example.com/graph1"),))
        # In 4.2.0 the first serialization would fail to include the
        # prefix for the graph but later serialize() calls would work.
        first_out = g.serialize(format='trig')
        second_out = g.serialize(format='trig')
        self.assert_(b'@prefix ns1: <http://example.com/> .' in second_out)
        self.assert_(first_out in b'@prefix ns1: <http://example.com/> .')
dataset/ETHPy150Open RDFLib/rdflib/test/test_trig.py/TestTrig.testRememberNamespace/swapped operands of `in`