<gh_stars>1-10
# -*- conding: utf-8 -*-

"""
Testing cash operation.

"""

from mgnemu.models.cash_operation import CashOperation
from unittest import TestCase


class TestCheckComment(TestCase):

    def setUp(self):
        self.json_data = {
            'IO': [
                {
                    'IO': {
                        'sum': 30
                    }
                }
            ]
        }

    def test_loads_json(self):
        model = CashOperation(self.json_data)

        data_line = model.dumps()
        dataIO = data_line['IO']
        print(dataIO)
        data_list = dataIO[0]
        data = data_list['IO']

        assert(data['sum'] == 30)

# -*- conding: utf-8 -*-

"""
Testing cash operation.

"""

from mgnemu.models.cash_operation import CashOperation
from unittest import TestCase


class TestCheckComment(TestCase):

    def setUp(self):
        self.json_data = {
            'IO': [
                {
                    'IO': {
                        'sum': 30
                    }
                }
            ]
        }

    def test_loads_json(self):
        model = CashOperation(self.json_data)

        data_line = model.dumps()
        dataIO = data_line['IO']
        print(dataIO)
        data_list = dataIO[0]
        data = data_list['IO']

        assert(data['sum'] == 30)
# -*- conding: utf-8 -*- Testing cash operation.