Example #1
0
class MXRecordPTRTest(unittest.TestCase):
    def setUp(self):
        self.domain = "sunet.se"
        self.p = MXRecordPTR()

    def test(self):
        data = [{"prio": "10", "host": "njord.sunet.se", "ip": "192.36.125.194", "connection_type": "INET"}]
        self.p.setInput("MXRecord", {"mx_record": data})
        r = runTestPlugin(self.p, self.domain)
        status = r.getFinalStatus()

        self.assertEqual(status, Plugin.STATUS_OK)
Example #2
0
class MXRecordPTRTest(unittest.TestCase):
    def setUp(self):
        self.domain = 'sunet.se'
        self.p = MXRecordPTR()

    def test(self):
        data = [
            {
                'prio': '10',
                'host': 'njord.sunet.se',
                'ip': '192.36.125.194',
                'connection_type': 'INET'
            },
        ]
        self.p.setInput('MXRecord', {'mx_record': data})
        r = runTestPlugin(self.p, self.domain)
        status = r.getFinalStatus()

        self.assertEqual(status, Plugin.STATUS_OK)
Example #3
0
 def setUp(self):
     self.domain = 'sunet.se'
     self.p = MXRecordPTR()
Example #4
0
 def setUp(self):
     self.domain = "sunet.se"
     self.p = MXRecordPTR()