view tests/test_histogram.py @ 72:06094870fdd7

more stubbing
author Jeff Hammel <k0scist@gmail.com>
date Sat, 28 Feb 2015 17:05:04 -0800
parents 07362c531a7e
children 8e93d7357c6b
line wrap: on
line source

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
unit tests for histograms
"""

import os
import sys
import unittest
from numerics.histogram import Histogram

# globals
here = os.path.dirname(os.path.abspath(__file__))

class HistogramUnitTest(unittest.TestCase):

    def test_histogram(self):
        """basic histogram test"""

        # make some test data
        data = [0,0,1,1,2,3,4,5,6,7,8,8,8]
        bins = range(0,10)

        # make a histogram
        h = Histogram(bins)

if __name__ == '__main__':
    unittest.main()