def test_is_same_object(self): btc_jpy = CurrencyPair('btc_jpy') self.assertIs(btc_jpy, self._btc_jpy)
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')
def test_init_from_currency_pair_obj(self): btc_jpy = CurrencyPair(self._btc_jpy) self.assertIs(btc_jpy, self._btc_jpy)