Skip to content

Commit

Permalink
Replace assertis with assertequal
Browse files Browse the repository at this point in the history
  • Loading branch information
EphraimSiegfried committed Dec 18, 2022
1 parent c8df5a9 commit 9b5101c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ def setUp(self):

def test_parse_command_returns_correct_path(self):
self.interpreter.commands = [{'WHERE_FROM(wiki) & NAME(China):': 'WHERE_FROM(wiki)'}]
self.assertIs('Users/Peter/Library', self.interpreter.parse_command())
self.assertEqual('Users/Peter/Library', self.interpreter.parse_command())

self.interpreter.commands = [{'WHERE_FROM(uni) & NAME(China):': 'WHERE_FROM(wiki)'},
{'WHERE_FROM(wiki) & NAME(China):': 'WHERE_FROM(wiki)'}]
self.assertIs('Users/Peter/Library', self.interpreter.parse_command())
self.assertEqual('Users/Peter/Library', self.interpreter.parse_command())

self.interpreter.commands = [{'WHERE_FROM(uni) & NAME(China):': 'WHERE_FROM(wiki)'}]
self.assertIs(None, self.interpreter.parse_command())
Expand Down

0 comments on commit 9b5101c

Please sign in to comment.