1234567891011121314151617 |
- # -*- coding: utf-8 -*-
- import pytest
- import datetime
- import dingguo
- import yaml
- import os
- def test_sum_init_eur():
- assert dingguo.Sum(1.23, u'EUR') == dingguo.Sum(1.23, u'€')
- def test_sum_init_usd():
- assert dingguo.Sum(1.23, u'USD') == dingguo.Sum(1.23, u'US$')
- def test_distance_metres():
- assert int(dingguo.Distance(1.23, u'km').metres) == 1230
|