def test_read_from_file(self, mock_open): utils.read_from_file('blah') mock_open.assert_called_once_with('blah')
def test_read_from_file(self, mock_open): utils.read_from_file('blah') mock_open.assert_called_once_with('blah')
def _get_stats(cls, stats_fpath): if stats_fpath and os.path.isfile(stats_fpath): return utils.read_from_file(stats_fpath) return None
def _get_stats(cls, stats_fpath): if stats_fpath and os.path.isfile(stats_fpath): return utils.read_from_file(stats_fpath) return None