def test_match(self): self.connect_localhost() localhost = UncDirectory(r'\\localhost') self.assertEqual(Q.get_connection_for_unc_directory(localhost).unc, localhost)
def test_match(self): self.connect_localhost() localhost = UncDirectory(r'\\localhost') self.assertEqual( Q.get_connection_for_unc_directory(localhost).unc, localhost)
def test_no_match(self): self.disconnect_localhost() localhost = UncDirectory(r'\\localhost') self.assertIsNone(Q.get_connection_for_unc_directory(localhost))
def test_no_match(self): self.disconnect_localhost() localhost = UncDirectory(r'\\localhost') self.assertIsNone(Q.get_connection_for_unc_directory(localhost))