@@ -0,0 +1,1792 @@
+import pytest%0Afrom exchange import UniformExchange%0A%0Aclass TestUniformExchange(object):%0A    def setup(self):%0A        # Set of valid arguments.%0A        self.args1 = %5B1, 2, 1e-11, 1e-12, 1e-13, 1e-14, 1e6%5D%0A                      %0A        # Set of invalid arguments.%0A        self.args2 = %5B-1, -2.1, 'a', (1, 2), 0, '0', %5B1, 2, 3%5D%5D%0A%0A    def test_init(self):%0A        # Valid arguments.%0A        for A in self.args1:%0A            exchange = UniformExchange(A)%0A%0A            assert exchange.A == A%0A            assert isinstance(exchange.A, (int, float))%0A%0A    def test_init_exceptions(self):%0A        # Invalid arguments (ValueError expected).%0A        for A in self.args2:%0A            with pytest.raises(ValueError):%0A                exchange = UniformExchange(A)%0A%0A    def test_get_mif(self):%0A        for A in self.args1:%0A            exchange = UniformExchange(A)%0A%0A            mif = exchange.get_mif()%0A            mif_lines = exchange.get_mif().split('%5Cn')%0A%0A            # Assert comment.%0A            l = mif_lines%5B0%5D.split()%0A            assert l%5B0%5D == '#'%0A            assert l%5B1%5D == 'UniformExchange'%0A%0A            # Assert set statement.%0A            l = mif_lines%5B1%5D.split()%0A            assert l%5B0%5D == 'set'%0A            assert l%5B1%5D == 'A'%0A            assert float(l%5B2%5D) == A%0A%0A            # Assert Specify line.%0A            l = mif_lines%5B2%5D.split()%0A            assert l%5B0%5D == 'Specify'%0A            assert l%5B1%5D == 'Oxs_UniformExchange'%0A            assert l%5B2%5D == '%7B'%0A%0A            # Assert step line.%0A            assert mif_lines%5B3%5D%5B0%5D == '%5Ct'%0A            l = mif_lines%5B3%5D.split()%0A            assert l%5B0%5D == 'A'%0A            assert l%5B1%5D == '$A'%0A%0A            # Assert mif end.%0A            assert mif_lines%5B4%5D == '%7D'%0A%0A            # Assert new lines at the end of the string.%0A            assert mif%5B-2:%5D == '%5Cn%5Cn'%0A

Add UniformExchange tests.