Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
added unit test for which
Browse files Browse the repository at this point in the history
  • Loading branch information
David Whiteside committed Nov 28, 2016
1 parent 74a74f2 commit f6b12ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/units/test_tracknodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ def test_encode_state(self):

def test_decode_state(self):
assert( TrackNodes.decode_state(3) == "offline,down" )

def test_which(self):
full_env_path = TrackNodes.which("env")
assert( full_env_path == "/usr/bin/env" or full_env_path == "/bin/env" )

0 comments on commit f6b12ce

Please sign in to comment.