Skip to content

Commit

Permalink
remove bracket from assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Aug 1, 2022
1 parent a50b4a2 commit 25ca5e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unittests/test_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@
@skip_ping_tests
def test_spalloc():
# Should be able to reach Spalloc...
assert(Ping.host_is_reachable("spinnaker.cs.man.ac.uk"))
assert Ping.host_is_reachable("spinnaker.cs.man.ac.uk")


@skip_ping_tests
def test_google_dns():
# *REALLY* should be able to reach Google's DNS..
assert(Ping.host_is_reachable("8.8.8.8"))
assert Ping.host_is_reachable("8.8.8.8")


def test_localhost():
# Can't ping localhost? Network catastrophically bad!
assert(Ping.host_is_reachable("localhost"))
assert Ping.host_is_reachable("localhost")


def test_ping_down_host():
# Definitely unpingable host
assert(not Ping.host_is_reachable("169.254.254.254"))
assert not Ping.host_is_reachable("169.254.254.254")

0 comments on commit 25ca5e8

Please sign in to comment.