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