# Path: zaifbot/exchange/action.py
# def Action(action):
#     def __init__(self, action):  # necessary
#     def __str__(self):
#     def __eq__(self, other):
#     def name(self):
#     def is_my_action(self):
#     def is_my_action(action):
#     def opposite_action():
#     def name(self):
#     def is_my_action(action):
#     def opposite_action():
#     def name(self):
# class _TradeAction(metaclass=ABCMeta):
# class _Buy(_TradeAction):
# class _Sell(_TradeAction):


import unittest
from zaifbot.exchange.action import Action, Buy, Sell


class TestAction(unittest.TestCase):
    def test_buy(self):
        buy = Action('bid')

# Path: zaifbot/exchange/action.py
# def Action(action):
#     def __init__(self, action):  # necessary
#     def __str__(self):
#     def __eq__(self, other):
#     def name(self):
#     def is_my_action(self):
#     def is_my_action(action):
#     def opposite_action():
#     def name(self):
#     def is_my_action(action):
#     def opposite_action():
#     def name(self):
# class _TradeAction(metaclass=ABCMeta):
# class _Buy(_TradeAction):
# class _Sell(_TradeAction):


# Path: tests/exchange/test_action.py
import unittest
from zaifbot.exchange.action import Action, Buy, Sell



class TestAction(unittest.TestCase):
    def test_buy(self):
        buy = Action('bid')

        self.assertEqual(buy, Buy)