Exemplo n.º 1
0
class OpenRelayTest(unittest.TestCase):
    def setUp(self):
        self.domain = "gatorhole.com"
        self.p = OpenRelay()

    def testOpenRelay(self):
        data = [["10", "lonn.org", "213.136.43.225", "INET"]]
        self.p.setInput("MXRecord", data)
        self.p.setInput("email", "*****@*****.**")
        r = runTestPlugin(self.p, self.domain)
        status = r.getFinalStatus()[2]
        print r
        self.assertEqual(status, Plugin.STATUS_OK)
Exemplo n.º 2
0
class OpenRelayTest(unittest.TestCase):
	def setUp(self):
		self.domain = 'gatorhole.com'
		self.p = OpenRelay()

	def testOpenRelay(self):
		data = [
			['10', 'lonn.org', '213.136.43.225', 'INET'],
			]
		self.p.setInput('MXRecord', data)
		self.p.setInput('email', '*****@*****.**')
		r = runTestPlugin(self.p, self.domain)
		status = r.getFinalStatus()[2]
		print r
		self.assertEqual(status, Plugin.STATUS_OK)
Exemplo n.º 3
0
 def setUp(self):
     self.domain = "gatorhole.com"
     self.p = OpenRelay()
Exemplo n.º 4
0
	def setUp(self):
		self.domain = 'gatorhole.com'
		self.p = OpenRelay()