#!/usr/bin/env python
# -*- coding: utf-8 -*-

import unittest
from money import dollar, franc

class MoneyTest(unittest.TestCase):
    def test_multiplication(self):
        five = dollar.Dollar(5)
        self.assertEqual(dollar.Dollar(10), five.times(2))
        self.assertEqual(dollar.Dollar(15), five.times(3))

    def test_equality(self):
        self.assertTrue(dollar.Dollar(5) == dollar.Dollar(5))
        self.assertFalse(dollar.Dollar(5) == dollar.Dollar(6))
        self.assertTrue(franc.Franc(5) == franc.Franc(5))
        self.assertFalse(franc.Franc(5) == franc.Franc(6))

    def test_franc_multiplication(self):
        five = franc.Franc(5)
        self.assertEqual(franc.Franc(10), five.times(2))
        self.assertEqual(franc.Franc(15), five.times(3))

        
