MCPcopy Create free account
hub / github.com/rthalley/dnspython / testCopy

Method testCopy

tests/test_rrset.py:89–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 self.assertEqual(r1, r2)
88
89 def testCopy(self):
90 r1 = dns.rrset.from_text_list("foo", 30, "in", "a", ["10.0.0.1", "10.0.0.2"])
91 r2 = r1.copy()
92 self.assertFalse(r1 is r2)
93 self.assertTrue(r1 == r2)
94
95 def testFullMatch1(self):
96 r1 = dns.rrset.from_text_list("foo", 30, "in", "a", ["10.0.0.1", "10.0.0.2"])

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected