def test_clean(self, mock_standardize, mock_string, mock_number):
     mock_number.return_value = 'NUMBER'
     mock_string.return_value = 'STRING'
     mock_standardize.return_value = 'NUMBER'
     result = clean(self.to_cleanup)
     self.assertEqual(mock_number.call_count, 14)
     self.assertEqual(mock_string.call_count, 8)
     self.assertDictEqual(result, self.cleaned)
Esempio n. 2
0
 def test_clean(self, mock_standardize, mock_string, mock_number):
     mock_number.return_value = 'NUMBER'
     mock_string.return_value = 'STRING'
     mock_standardize.return_value = 'NUMBER'
     result = clean(self.to_cleanup)
     self.assertEqual(mock_number.call_count, 14)
     self.assertEqual(mock_string.call_count, 8)
     self.assertDictEqual(result, self.cleaned)