Example #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)
Example #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)
Example #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')
Example #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')
Example #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)
Example #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
 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)