コード例 #1
0
 def test_is_same_object(self):
     btc_jpy = CurrencyPair('btc_jpy')
     self.assertIs(btc_jpy, self._btc_jpy)
コード例 #2
0
 def setUp(self):
     self._btc_jpy = CurrencyPair('btc_jpy')
     self._xem_jpy = CurrencyPair('xem_jpy')
     self._xem_btc = CurrencyPair('xem_btc')
     self._zaif_jpy = CurrencyPair('zaif_jpy')
     self._zaif_btc = CurrencyPair('zaif_btc')
コード例 #3
0
 def test_init_from_currency_pair_obj(self):
     btc_jpy = CurrencyPair(self._btc_jpy)
     self.assertIs(btc_jpy, self._btc_jpy)