コード例 #1
0
ファイル: libcloud_dns_test.py プロジェクト: bryson/salt
 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)
コード例 #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)
コード例 #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')
コード例 #4
0
ファイル: libcloud_dns_test.py プロジェクト: bryson/salt
 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')
コード例 #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)
コード例 #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
コード例 #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)