@@ -0,0 +1,500 @@
+import os%0Aimport unittest%0Aimport netCDF4%0Afrom numpy.testing import assert_array_equal%0Aimport numpy as np%0A%0ACURRENT_DIR = os.path.dirname(os.path.realpath(__file__))%0A%0Aclass Test_Unsigned(unittest.TestCase):%0A    def test_unsigned(self):%0A        fpath = os.path.join(CURRENT_DIR, %22ubyte.nc3%22)%0A        f = netCDF4.Dataset(fpath)%0A        data = f%5B'ub'%5D%5B:%5D%0A        assert data.dtype.str%5B1:%5D == 'u1'%0A        assert_array_equal(data,np.array(%5B0,255%5D,np.uint8))%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

add test for issue #656