Index: sanscalculator/test/beam profile.DAT
===================================================================
--- sanscalculator/test/beam profile.DAT	(revision 3a41d4e3c358268bf7c4f46b061d764fc2ab82df)
+++ sanscalculator/test/beam profile.DAT	(revision 3a41d4e3c358268bf7c4f46b061d764fc2ab82df)
@@ -0,0 +1,54 @@
+                                                                                
+SAXS BOX                                                                       
+       49        30         0         0         0         0         0         0
+  0.000000E+00   0.261200E+03   0.000000E+00   0.100000E+01   0.154200E+00
+  0.100000E+01   0.155999E+01   0.000000E+00   0.000000E+00   0.000000E+00
+  0.000000E+00   0.100000E+01   0.836825E+02
+  0.754396E-01   0.975440E+00   0.938981E+02
+  0.150879E+00   0.975745E+00   0.991879E+02
+  0.226319E+00   0.975473E+00   0.767819E+02
+  0.301758E+00   0.974517E+00   0.131319E+03
+  0.377198E+00   0.973001E+00   0.817830E+02
+  0.452637E+00   0.969088E+00   0.668273E+02
+  0.528077E+00   0.967890E+00   0.934950E+02
+  0.603517E+00   0.975536E+00   0.116805E+03
+  0.678956E+00   0.982809E+00   0.966191E+02
+  0.754396E+00   0.982538E+00   0.138675E+03
+  0.829835E+00   0.985082E+00  -0.100000E+01
+  0.905275E+00   0.991786E+00  -0.100000E+01
+  0.980715E+00   0.988353E+00  -0.100000E+01
+  0.105615E+01   0.977319E+00  -0.100000E+01
+  0.113159E+01   0.973398E+00  -0.100000E+01
+  0.120703E+01   0.975829E+00  -0.100000E+01
+  0.128247E+01   0.978032E+00  -0.100000E+01
+  0.135791E+01   0.977557E+00  -0.100000E+01
+  0.143335E+01   0.976422E+00  -0.100000E+01
+  0.150879E+01   0.982926E+00  -0.100000E+01
+  0.158423E+01   0.991207E+00  -0.100000E+01
+  0.165967E+01   0.982255E+00  -0.100000E+01
+  0.173511E+01   0.968295E+00  -0.100000E+01
+  0.181055E+01   0.973161E+00  -0.100000E+01
+  0.188599E+01   0.980441E+00  -0.100000E+01
+  0.196143E+01   0.973060E+00  -0.100000E+01
+  0.203687E+01   0.967479E+00  -0.100000E+01
+  0.211231E+01   0.968228E+00  -0.100000E+01
+  0.218775E+01   0.954858E+00  -0.100000E+01
+  0.226319E+01   0.920322E+00  -0.100000E+01
+  0.233863E+01   0.870665E+00  -0.100000E+01
+  0.241407E+01   0.814629E+00  -0.100000E+01
+  0.248951E+01   0.758434E+00  -0.100000E+01
+  0.256495E+01   0.694671E+00  -0.100000E+01
+  0.264039E+01   0.621470E+00  -0.100000E+01
+  0.271583E+01   0.554105E+00  -0.100000E+01
+  0.279126E+01   0.490278E+00  -0.100000E+01
+  0.286670E+01   0.408652E+00  -0.100000E+01
+  0.294214E+01   0.321530E+00  -0.100000E+01
+  0.301758E+01   0.255968E+00  -0.100000E+01
+  0.309302E+01   0.200420E+00  -0.100000E+01
+  0.316846E+01   0.140477E+00  -0.100000E+01
+  0.324390E+01   0.907699E-01  -0.100000E+01
+  0.331934E+01   0.593287E-01  -0.100000E+01
+  0.339478E+01   0.366914E-01  -0.100000E+01
+  0.347022E+01   0.198629E-01  -0.100000E+01
+  0.354566E+01   0.120037E-01  -0.100000E+01
+  0.362110E+01   0.110363E-01  -0.100000E+01
Index: sanscalculator/test/utest_resolution_calculator.py
===================================================================
--- sanscalculator/test/utest_resolution_calculator.py	(revision 3a41d4e3c358268bf7c4f46b061d764fc2ab82df)
+++ sanscalculator/test/utest_resolution_calculator.py	(revision 3a41d4e3c358268bf7c4f46b061d764fc2ab82df)
@@ -0,0 +1,38 @@
+"""
+    Unit test for resolution_calculator
+"""
+
+import unittest
+from  sans.calculator.resolution_calculator import ResolutionCalculator \
+                                            as calculator
+
+class resolution_calculator(unittest.TestCase):
+    
+    def setUp(self):
+        
+        self.cal = calculator()
+        
+    def test_resolution_calculation(self):
+        """
+            Test resolution_calculator"
+        """
+        self.cal.set_wavelength(15)
+        self.cal.set_source_aperture_size([2])
+        self.cal.set_sample_aperture_size([1])
+        self.cal.set_detector_pix_size([1])
+        self.cal.set_source2sample_distance([1500])
+        self.cal.set_sample2detector_distance([1500])
+        self.cal.set_wavelength_spread(0.1)
+        # all instr. params for cal
+        self.cal.get_all_instrument_params()
+        qr, phi, sigma_1, sigma_2, _, sigma_1d = self.cal.compute(15, 0.1, 
+                                                        0, 0, coord = 'polar')
+        sigma_1d = self.cal.sigma_1d
+        
+        # The value "0.000213283" was obtained by manual calculation.
+        self.assertAlmostEqual(sigma_1d,   0.000213283, 5)
+        
+        
+if __name__ == '__main__':
+    unittest.main()
+   
Index: sanscalculator/test/utest_slit_length_calculator.py
===================================================================
--- sanscalculator/test/utest_slit_length_calculator.py	(revision 3a41d4e3c358268bf7c4f46b061d764fc2ab82df)
+++ sanscalculator/test/utest_slit_length_calculator.py	(revision 3a41d4e3c358268bf7c4f46b061d764fc2ab82df)
@@ -0,0 +1,33 @@
+"""
+    Unit tests for slit_length_calculator
+"""
+
+import unittest
+from DataLoader.readers.ascii_reader import Reader
+from  sans.calculator.slit_length_calculator import SlitlengthCalculator as calculator
+
+import os.path
+
+class slit_calculator(unittest.TestCase):
+    
+    def setUp(self):
+        
+        self.reader = Reader()
+        
+    def test_slitlength_calculation(self):
+        """
+            Test slit_length_calculator"
+        """
+        f = self.reader.read("beam profile.DAT")
+        cal = calculator()
+        cal.set_data(f.x,f.y)
+        slitlength = cal.calculate_slit_length()
+        
+        # The value "5.5858" was obtained by manual calculation.
+        # It turns out our slit length is FWHM/2
+        self.assertAlmostEqual(slitlength,5.5858/2, 3)
+        
+        
+if __name__ == '__main__':
+    unittest.main()
+   
