def test_get_specified_related_currency(self):
     dictionary = \
         [CurrencyNameValuePair("euro", 2),
          CurrencyNameValuePair("dollar", 3)]
     currency = Currency("", dictionary)
     self.assertEqual \
         (3,
          currency.get_related_currency_by_name("dollar")
          .get_value())
 def test_get_absent_related_currency(self):
     dictionary = \
         [CurrencyNameValuePair("euro", 2),
          CurrencyNameValuePair("dollar", 3)]
     currency = Currency("", dictionary)
     self.assertEqual(None, currency.get_related_currency_by_name("rororo"))