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