Example #1
0
 def test_load_nav_data_uses_default_file(self, m_get):
     """Use the folder specified by config['JSON_FOLDER']"""
     m_get.return_value = 'nav_data.json'
     load_nav_data()
     m_get.assert_called_with('JSON_FOLDER')
Example #2
0
 def test_load_nav_data_no_file(self):
     """Return an empty list if no file is loaded."""
     assert load_nav_data('/tmp/some_nonexistent_file.blargh') == []