def test_detect_filesd(self): with fake_repo() as repo: sd = add_filesd(repo, "server:/path", str(uuid.uuid4())) self.assertEqual(fileSD.getStorageDomainsList(), [sd.uuid])
def test_no_sd(self): with fake_repo(): self.assertEqual(fileSD.getStorageDomainsList(), [])