
from __future__ import print_function

import os
import netCDF4 as nc

from model_test_helper import ModelTestHelper

class TestCouplingFields(ModelTestHelper):

    def __init__(self):
        super(TestCouplingFields, self).__init__()

    def test_swflx(self):
        """
        Compare short wave flux over a geographic area between low and hi res
        models.
        """

        hi_fields = os.path.join(self.paths['cm_1440x1080-test']['output'], 'ice',
                                 'fields_a2i_in_ice.nc')
        lo_fields = os.path.join(self.paths['cm_360x300-test']['output'], 'ice',
                                 'fields_a2i_in_ice.nc')
        f_hi = nc.Dataset(hi_fields)
        f_hi.close()
        f_lo = nc.Dataset(lo_fields)
        f_lo.close()

@@ -392,61 +392,149 @@
  hi_
-fields = os.path.join(self.
+paths = self.make_paths('cm_1440x1080-test')%0A        lo_paths = self.make_
 paths
-%5B
+(
 'cm_
-1440x1080-test'%5D
+360x300-test')%0A%0A        hi_fields = os.path.join(hi_paths
 %5B'ou
@@ -642,37 +642,16 @@
 oin(
-self.paths%5B'cm_360x300-test'%5D
+lo_paths
 %5B'ou

Fix up paths in system test.