Exemple #1
0
 def test_zone_already_present(self):
     """
     Assert that a zone is present (that did exist)
     """
     with patch.object(MockDnsModule, 'create_zone') as create_patch:
         result = libcloud_dns.zone_present('test.com', 'master', 'test1')
         self.assertTrue(result)
     self.assertFalse(create_patch.called)
Exemple #2
0
 def test_zone_already_present(self):
     """
     Assert that a zone is present (that did exist)
     """
     with patch.object(MockDnsModule, 'create_zone') as create_patch:
         result = libcloud_dns.zone_present('test.com', 'master', 'test1')
         self.assertTrue(result)
     self.assertFalse(create_patch.called)
Exemple #3
0
 def test_zone_already_present(self):
     '''
     Assert that a zone is present (that did exist)
     '''
     result = libcloud_dns.zone_present('test.com', 'master', 'test1')
     self.assertTrue(result)
Exemple #4
0
def test_zone_already_present():
    """
    Assert that a zone is present (that did exist)
    """
    result = libcloud_dns.zone_present("test.com", "master", "test1")
    assert result
 def test_zone_present(self):
     """
     Assert that a zone is present (that did not exist)
     """
     result = libcloud_dns.zone_present("testing.com", "master", "test1")
     self.assertTrue(result)