def test_match(self):
     self.connect_localhost()
     localhost = UncDirectory(r'\\localhost')
     self.assertEqual(Q.get_connection_for_unc_directory(localhost).unc, localhost)
Example #2
0
 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))
Example #4
0
 def test_no_match(self):
     self.disconnect_localhost()
     localhost = UncDirectory(r'\\localhost')
     self.assertIsNone(Q.get_connection_for_unc_directory(localhost))