view tests/test_histogram.py @ 70:7a979736bbfc

stubbing
author Jeff Hammel <k0scist@gmail.com>
date Sat, 28 Feb 2015 17:00:35 -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()