--- /dev/null
+'''
+Created on Oct 29, 2010
+
+@author: sau
+'''
+import unittest
+from array import array
+from erange import Peak
+
+
+class TestPeak(unittest.TestCase):
+
+
+ def setUp(self):
+ pass
+
+
+ def tearDown(self):
+ pass
+
+
+ def testInitPeak(self):
+ topPos = 1
+ numHits = 2
+ smoothArray = array("f", [0.] * 10)
+ numPlus = 3
+ peak = Peak.Peak(topPos, numHits, smoothArray, numPlus)
+ self.assertEquals(1, peak.topPos)
+ self.assertEquals(2, peak.numHits)
+
+ def testProperties(self):
+ topPos = 1
+ numHits = 2
+ smoothArray = array("f", [0.] * 10)
+ numPlus = 3
+ peak = Peak.Peak(topPos, numHits, smoothArray, numPlus)
+ peak.topPos = 10
+ self.assertEquals(10, peak.topPos)
+ peak.numHits = 20
+ self.assertEquals(20, peak.numHits)
+
+
+def suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(TestPeak))
+
+ return suite
+
+
+if __name__ == "__main__":
+ #import sys;sys.argv = ['', 'Test.testName']
+ unittest.main()
\ No newline at end of file