Exemple #1
0
 def test_clean_csv_headings(self, mock_write, mock_read):
     mock_read.return_value = (['UNITID', 'PEO1ISTR'], {
         'UNITID': '100654',
         'PEO1ISTR': '0'
     })
     update_ipeds.clean_csv_headings()
     self.assertTrue(mock_read.call_count == 3)
     self.assertTrue(mock_write.call_count == 3)
Exemple #2
0
 def test_clean_csv_headings(self, mock_write, mock_read):
     mock_read.return_value = (['UNITID', 'PEO1ISTR'],
                               {'UNITID': '100654', 'PEO1ISTR': '0'})
     update_ipeds.clean_csv_headings()
     self.assertTrue(mock_read.call_count == 3)
     self.assertTrue(mock_write.call_count == 3)