def test_exchange_rate(self, html_f): """Test method to get an exchange rate in google.""" # replace method to get html from a test html file google.currency.get_html = \ Mock(return_value=html_f.read().decode('utf8')) usd_to_eur = google.exchange_rate("USD", "EUR") self.assertGreater(usd_to_eur, 0.0)
def test_exchange_rate(self): """Test method to get an exchange rate in google.""" usd_to_eur = google.exchange_rate("USD", "EUR") self.assertGreater(usd_to_eur, 0.0)