コード例 #1
0
    def test_not_stored_currency(self):
        st = rockefeller.MemoryCurrency()

        assert st.get('USD') is None
コード例 #2
0
    def test_support_get(self):
        st = rockefeller.MemoryCurrency()
        st.support(usd)

        assert st.get('USD') == usd
コード例 #3
0
    def test_not_support(self):
        st = rockefeller.MemoryCurrency()
        st.not_support(usd)

        assert st.get('USD') is None
コード例 #4
0
 def teardown_method(self, method):
     rockefeller.Currency.store = rockefeller.MemoryCurrency()