Exemplo n.º 1
0
 def test_filename(self, mock_read_json):
     """ Test that the filename is correct. """
     mock_read_json.return_value = None
     history = CompactHistory('history.json')
     self.assertEqual('history.json', history.filename())
Exemplo n.º 2
0
    def test_filename(self, mock_read_json):
        """ Test getting the filename. """
        mock_read_json.retrun_value = '{"unimportant": "not used"}'
        history = CompactHistory('history_file_name.json')

        self.assertEqual('history_file_name.json', history.filename())
Exemplo n.º 3
0
    def test_filename(self, mock_read_json):
        """ Test getting the filename. """
        mock_read_json.retrun_value = '{"unimportant": "not used"}'
        history = CompactHistory('history_file_name.json')

        self.assertEqual('history_file_name.json', history.filename())
Exemplo n.º 4
0
 def test_filename(self, mock_read_json):
     """ Test that the filename is correct. """
     mock_read_json.return_value = None
     history = CompactHistory('history.json')
     self.assertEqual('history.json', history.filename())