Exemplo n.º 1
0
    def test_02_list_resolvers(self):
        # check if the resolver, we created is in the database
        l = get_resolver_list()
        self.assertTrue("testresolver" in l.keys(), l.keys())

        l = get_resolver_list(filter_resolver_name="testresolver")
        self.assertTrue("testresolver" in l.keys(), l.keys())

        l = get_resolver_list(filter_resolver_type="hosts")
        self.assertTrue("testresolver" in l.keys(), l.keys())
Exemplo n.º 2
0
    def test_02_list_resolvers(self):
        # check if the resolver, we created is in the database
        l = get_resolver_list()
        self.assertTrue("testresolver" in l, l)

        l = get_resolver_list(filter_resolver_name="testresolver")
        self.assertTrue("testresolver" in l, l)

        l = get_resolver_list(filter_resolver_type="hosts")
        self.assertTrue("testresolver" in l, l)
Exemplo n.º 3
0
 def test_99_delete_resolver(self):
     delete_resolver("testresolver")
     l = get_resolver_list(filter_resolver_name="testresolver")
     self.assertTrue("testresolver" not in l, l)
Exemplo n.º 4
0
 def test_99_delete_resolver(self):
     delete_resolver("testresolver")
     l = get_resolver_list(filter_resolver_name="testresolver")
     self.assertTrue("testresolver" not in l.keys(), l.keys())