コード例 #1
0
ファイル: test_utils.py プロジェクト: ForisTale/foris_dev
 def test_get_commands(self):
     self.request.session.update({
         "skills_commands": ["skills"],
         "items_commands": ["items"],
         "spells_commands": ["spells"],
         "other_commands": ["other"]
     })
     commands = Commands(self.request)
     actual = commands.get_commands()
     expected = ["skills", "items", "spells", "other"]
     self.assertEqual(expected, actual)
コード例 #2
0
ファイル: test_utils.py プロジェクト: ForisTale/foris_dev
 def test_get_commands_can_handle_empty_keys(self):
     commands = Commands(self.request)
     actual = commands.get_commands()
     self.assertEqual([], actual)