Skip to content

Commit

Permalink
Added port to test_ftp_url(), replaced assertTrue to assertEqual.
Browse files Browse the repository at this point in the history
  • Loading branch information
zmej-serow committed Jun 11, 2019
1 parent d5c5159 commit 67e5a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_ftpfs.py
Expand Up @@ -166,7 +166,7 @@ def tearDown(self):
super(TestFTPFS, self).tearDown()

def test_ftp_url(self):
self.assertTrue(self.fs.ftp_url.startswith("ftp://{}:{}@{}".format(self.user, self.pasw, self.server.host)))
self.assertEqual(self.fs.ftp_url, "ftp://{}:{}@{}:{}".format(self.user, self.pasw, self.server.host, self.server.port))

def test_geturl(self):
self.fs.makedir("foo")
Expand Down Expand Up @@ -300,7 +300,7 @@ def tearDown(self):
super(TestAnonFTPFS, self).tearDown()

def test_ftp_url(self):
self.assertTrue(self.fs.ftp_url.startswith("ftp://{}".format(self.server.host)))
self.assertEqual(self.fs.ftp_url, "ftp://{}:{}".format(self.server.host, self.server.port))

def test_geturl(self):
self.fs.makedir("foo")
Expand Down

0 comments on commit 67e5a40

Please sign in to comment.