Ejemplo n.º 1
0
 def test_zone_already_absent(self):
     """
     Assert that a zone that did not exist is absent
     """
     with patch.object(MockDnsModule, 'delete_zone') as create_patch:
         result = libcloud_dns.zone_absent('testing.com', 'test1')
         self.assertTrue(result)
     self.assertFalse(create_patch.called)
Ejemplo n.º 2
0
 def test_zone_already_absent(self):
     """
     Assert that a zone that did not exist is absent
     """
     with patch.object(MockDnsModule, 'delete_zone') as create_patch:
         result = libcloud_dns.zone_absent('testing.com', 'test1')
         self.assertTrue(result)
     self.assertFalse(create_patch.called)
Ejemplo n.º 3
0
 def test_zone_absent(self):
     """
     Assert that a zone that did exist is absent
     """
     with patch.object(MockDnsModule, 'delete_zone') as create_patch:
         result = libcloud_dns.zone_absent('test.com', 'test1')
         self.assertTrue(result)
     self.assertTrue(create_patch.called)
     create_patch.assert_called_with('zone1', 'test1')
Ejemplo n.º 4
0
 def test_zone_absent(self):
     """
     Assert that a zone that did exist is absent
     """
     with patch.object(MockDnsModule, 'delete_zone') as create_patch:
         result = libcloud_dns.zone_absent('test.com', 'test1')
         self.assertTrue(result)
     self.assertTrue(create_patch.called)
     create_patch.assert_called_with('zone1', 'test1')
Ejemplo n.º 5
0
 def test_zone_already_absent(self):
     '''
     Assert that a zone that did not exist is absent
     '''
     result = libcloud_dns.zone_absent('testing.com', 'test1')
     self.assertTrue(result)
Ejemplo n.º 6
0
def test_zone_already_absent():
    """
    Assert that a zone that did not exist is absent
    """
    result = libcloud_dns.zone_absent("testing.com", "test1")
    assert result
Ejemplo n.º 7
0
 def test_zone_absent(self):
     """
     Assert that a zone that did exist is absent
     """
     result = libcloud_dns.zone_absent("test.com", "test1")
     self.assertTrue(result)