def testVirtCluster(self): self.assertEqual(vcluster._PreparePaths("/tmp/host.example.com", "host.example.com"), ("/tmp", "/tmp/host.example.com", "host.example.com"))
def testNoVirtCluster(self): for i in ["", None]: self.assertEqual(vcluster._PreparePaths(i, i), ("", "", None))